Skip to content
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

Draft
wants to merge 7 commits into
base: v3.2-dev
Choose a base branch
from

Conversation

handrews
Copy link
Member

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).


  • schema changes are included in this pull request
  • schema changes are needed for this pull request but not done yet
  • no schema changes are needed for this pull request

@handrews handrews added schema-object discriminator xml param serialization Issues related to parameter and/or header serialization media and encoding Issues regarding media type support and how to encode data (outside of query/path params) editorial Wording and stylistic issues labels Mar 20, 2025
@handrews handrews added this to the v3.2.0 milestone Mar 20, 2025
Copy link
Contributor

@ralfhandl ralfhandl left a 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

ralfhandl
ralfhandl previously approved these changes Mar 21, 2025
ralfhandl
ralfhandl previously approved these changes Mar 21, 2025
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.
@handrews
Copy link
Member Author

@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)

@ralfhandl
Copy link
Contributor

I like the direction of keeping the Objects sections simple & straightforward and collecting the nitty gritty special cases further down.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discriminator editorial Wording and stylistic issues media and encoding Issues regarding media type support and how to encode data (outside of query/path params) param serialization Issues related to parameter and/or header serialization schema-object xml
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants