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

Support nested object type definitions #256

Merged
merged 2 commits into from
Jan 3, 2020

Conversation

jparise
Copy link
Contributor

@jparise jparise commented Jan 3, 2020

We previously discovered nested object definitions but didn't generate
code for them. This change implements that final bit of support.

The main missing piece was a recursive operation to return all of the
object roots defined within a schema. We were previously only looking at
the schema's top-level object root during the file generation step.

With this in place, the file generation loop now also operates over
all object roots defined by a schema.

Resolves #254

We previously discovered nested object definitions but didn't generate
code for them. This change implements that final bit of support.

The main missing piece was a recursive operation to return all of the
object roots defined within a schema. We were previously only looking at
the schema's top-level object root during the file generation step.

With this in place, the file generation loop now also operates over
*all* object roots defined by a schema.
Sources/Core/Schema.swift Show resolved Hide resolved
Sources/Core/Schema.swift Show resolved Hide resolved
Sources/Core/Schema.swift Show resolved Hide resolved
@jparise jparise merged commit 2346a29 into pinterest:master Jan 3, 2020
@jparise jparise deleted the nested-objects branch January 3, 2020 21:41
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.

Support nested object definitions
2 participants