Commit 5d173c8
feat(metadata): SP-G Java recon Unit6b-fin/6c — exclude @object/@objectadapter binding facets + refactor field-validation to validator children
Part A (Unit 6b-finish): exclude the two per-port type-BINDING facets @object
(ADR-0001 class-FQN type binding for OO ports) and @objectadapter (ADR-0005
hybrid value-access seam) from the registry manifest. These are the same
category as the already-excluded native type bindings — legitimate per-port
binding mechanisms, not cross-port logical vocabulary. Added 'object' +
'objectAdapter' to the shared per-type-attr exclusion set in all 4 emitters
(TS/C#/Python no-op; filters Java's object.* binding attrs); they stay
REGISTERED in Java (load-bearing runtime mechanisms read by the value-access
representation, IO readers, and OMDB). README EXCLUDED list documents them
alongside the native-type-bindings entry. object.* rows now match the canonical
(residual only the object.base db* set → Unit 7).
Part B (Unit 6c): refactor Java's field-level validation attrs to the cross-port
validator-children form. Dropped the redundant/vestigial field-level
registrations: @pattern/@minlength (string), @minValue/@MaxValue (int/long/
float/double/decimal), @format/@dateFormat/@minDate/@maxDate (date),
@format/@minTime/@maxtime (time), @dateFormat/@minDate/@maxDate (timestamp),
and field-level @Locale (currency). Investigation confirmed NONE are read by
codegen/runtime/loader: codegen-spring/codegen-kotlin already emit validation
from validator CHILD nodes (validator.regex @pattern, validator.length
@min/@max, validator.numeric @min/@max) per the SP-C validator-parity work, so
the field-level attrs were a redundant second path; the temporal-format /
currency-locale attrs were vestigial (no canonical peer, no consumer — the
currency @Locale wire contract lives on view.currency). Kept the canonical
per-field attrs maxLength/precision/scale/currency. Constants retained (harmless;
referenced by tests). Migrated the orphaned valid-complete-metadata.json example
+ the embedded test metadata to validator-children form; updated the
registration-assertion tests to assert NAMED-requirement absence (field.base's
open wildcard attr policy still accepts arbitrary attrs via acceptsChild).
field.* rows now match the canonical (residual only the physical db* set → Unit 7).
Java metadata 926/926 green; codegen-base/codegen-spring/codegen-kotlin/omdb
BUILD SUCCESS; TS/C#/Python registry-conformance still byte-green (no-op).
Gated RegistryManifestConformanceTest stays @ignore (Unit 8); un-skipped locally
to confirm object.* + field.* now match canonical and the residual is ONLY the
physical db* set (dbType/dbIndex/dbLength/dbNullable/dbForeignKey/dbPrecision/
dbScale/dbUnique/dbSequenceName/dbIndexName/dbTablespace/previousName — Unit 7),
then re-skipped. Gate Javadoc updated accordingly.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent 1e4b905 commit 5d173c8
21 files changed
Lines changed: 221 additions & 201 deletions
File tree
- fixtures/registry-conformance
- server
- csharp/MetaObjects
- java
- codegen-base/src/test/resources/schema-validation
- metadata/src
- main/java/com/metaobjects
- field
- registry
- test/java/com/metaobjects
- constraint
- field
- registry
- python/src/metaobjects
- typescript/packages/metadata/src
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
108 | 118 | | |
109 | 119 | | |
110 | 120 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
54 | 58 | | |
55 | 59 | | |
56 | 60 | | |
57 | 61 | | |
58 | 62 | | |
59 | 63 | | |
60 | 64 | | |
| 65 | + | |
| 66 | + | |
61 | 67 | | |
62 | 68 | | |
63 | 69 | | |
| |||
Lines changed: 1 addition & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
31 | 30 | | |
32 | 31 | | |
33 | 32 | | |
| |||
97 | 96 | | |
98 | 97 | | |
99 | 98 | | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
| 99 | + | |
110 | 100 | | |
111 | 101 | | |
112 | 102 | | |
| |||
Lines changed: 5 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
| 41 | + | |
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | | - | |
49 | | - | |
50 | | - | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
51 | 52 | | |
52 | 53 | | |
53 | 54 | | |
| |||
Lines changed: 6 additions & 17 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
| 47 | + | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
66 | 55 | | |
67 | 56 | | |
68 | 57 | | |
| |||
Lines changed: 4 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
71 | 68 | | |
72 | 69 | | |
73 | 70 | | |
| |||
Lines changed: 3 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
66 | 61 | | |
67 | 62 | | |
68 | 63 | | |
| |||
Lines changed: 3 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
54 | 49 | | |
55 | 50 | | |
56 | 51 | | |
| |||
Lines changed: 5 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
57 | 54 | | |
58 | 55 | | |
59 | 56 | | |
| |||
Lines changed: 3 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
57 | 52 | | |
58 | 53 | | |
59 | 54 | | |
| |||
0 commit comments