Skip to content

Support defining nested objects in lexicons#55

Open
LemmaEOF wants to merge 1 commit intomary-ext:trunkfrom
LemmaEOF:nested-objects
Open

Support defining nested objects in lexicons#55
LemmaEOF wants to merge 1 commit intomary-ext:trunkfrom
LemmaEOF:nested-objects

Conversation

@LemmaEOF
Copy link

At the moment, atcute rejects direct-nested objects in Lexicon type definitions. However, the typescript reference implementation, the go reference implementation, and honk support it, and while the Lexicon spec defines objects as "A generic object schema which can be nested inside other definitions by reference", it does not outright forbid nesting inline objects like it specifies that unions must be objects.

Pending a proper clarification, this PR brings atcute in line with the other validator implementations and supports direct inlining of object definitions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant