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

Modify rest.c to use the changed call to sch_traverse_tree #68

Merged
merged 1 commit into from
Nov 12, 2024

Conversation

gcampbell512
Copy link
Contributor

The api for sch_traverse_tree in apteryx-xml/schema.c has been changed. This change modifies rest.c to use the new api.

When processing a "with-defaults" report-all for a query and the query is only for leaf fields, then the routine sch_traverse_tree is no longer called as there can be no additional defaults to add.

@gcampbell512 gcampbell512 force-pushed the with-defaults branch 2 times, most recently from bc40d70 to 1ac225b Compare November 8, 2024 22:06
The api for sch_traverse_tree in apteryx-xml/schema.c has been changed.
This change modifies rest.c to use the new api.

To handle the complexity of a "with-defaults" report-all query, use
a new routine sch_add_defaults provided in apteryx-xml/schema.c
@carlgsmith carlgsmith merged commit 4bbc82e into alliedtelesis:master Nov 12, 2024
1 check passed
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.

3 participants