Skip to content

Flatten JSON & TS data model Pattern element #585

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jan 10, 2024

Conversation

eemeli
Copy link
Collaborator

@eemeli eemeli commented Jan 10, 2024

Feedback from writing the JS implementation:

In the data model, the wrapping object in the Pattern which has a single body property is rather useless. We should flatten this to simplify the model a bit.

One reason why the wrapping object was included earlier was to enable an extension of the data model to function as a CST, but in practice I at least found that its requirements are sufficiently different for the CST to work better as a separately defined structure.

This PR overlaps a bit with #574; whichever lands second will need a small adjustment to deconflict the merge.

@eemeli eemeli added the data model Issues related to the Interchange Data Model label Jan 10, 2024
@eemeli eemeli requested a review from gibson042 January 10, 2024 13:49
Copy link
Member

@aphillips aphillips left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Some editorial comments.

@aphillips aphillips added the LDML45 LDML45 Release (Tech Preview) label Jan 10, 2024
Co-authored-by: Addison Phillips <addisonI18N@gmail.com>
@eemeli eemeli requested a review from aphillips January 10, 2024 17:10
Co-authored-by: Richard Gibson <richard.gibson@gmail.com>
@aphillips aphillips merged commit d6f337f into unicode-org:main Jan 10, 2024
@eemeli eemeli deleted the flat-pattern branch January 10, 2024 20:22
eemeli added a commit that referenced this pull request Jan 12, 2024
@eemeli eemeli mentioned this pull request Jan 12, 2024
aphillips pushed a commit that referenced this pull request Jan 13, 2024
* Fix merge of #574 and #585

* Fix JSON Schema options definition
eemeli added a commit to messageformat/messageformat that referenced this pull request Jan 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
data model Issues related to the Interchange Data Model LDML45 LDML45 Release (Tech Preview)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants