-
Notifications
You must be signed in to change notification settings - Fork 9.1k
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
Gather data modeling sections into a "Modeling Data" top-level section #4472
base: v3.2-dev
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1, with two nits
Create a new top-level section called "Modeling Data" that collects various data modeling and serialization sections that go well beyond explaining the Object fields. This just moves sections with no changes except to adjust the heading level to build properly. Subsequent changes will move examples into the new section and streamline the resulting content.
This just brings each of the examples corresponding to subsections under "Data Modeling Techniques" into the appropriate subsection.
This does a few section name and indentation level changes to improve the organization of the new section. It also adds links from the old locations to the new.
This only addresses the refactored Modeling Data sections, the rest will be handled separately.
@ralfhandl I've done a bit more work and incorporated your changes that were still relevant, including picking a preferred JSON Schema URL which we can change further elsewhere (since this is still just a "get feedback on direction" PR) |
I like the direction of keeping the Objects sections simple & straightforward and collecting the nitty gritty special cases further down. |
I went to add streaming JSON support to 3.2 and was struck again at how scattered various bits of guidance on data modeling are.
This mostly just moves sections (big sections in the first commit, then some examples in the second) and then does a tiny bit of renaming, re-indenting, and linking to make it flow. It is a draft because (assuming we go this route), it is not clear where to draw the line, particularly with examples.
There is significant overlap between the examples moved from the Schema Object and the examples still in the Discriminator Object section. I also left the XML Object Examples where they were, which makes the Modeling XML section rather perfunctory.
If folks like this general idea, we can work out how to balance what goes where.
Note that I also slightly moved "Rich Text Formatting" as taking the data modeling sections out of the introduction left it sandwiched awkwardly between the Document Structure section and the Resolving URIs/URLs sections, which really ought to be next to each other anyway. (Please do not discuss re-organizing other sections. In particular, @karenetheridge and I are already planning to reorganize Document Structure and the Resolving sections, so please wait for that effort to open that topic).