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

fix: update target json desc from RootSchema to SchemaObject #455

Merged
merged 1 commit into from
Sep 27, 2024

Conversation

j-lanson
Copy link
Collaborator

Resolves #453 .

In the Issue, I suggested that we would need to switch our use of schemars::SchemaObject to RootSchema, because just emitting the schema_for!(Target).schema for Target results in a definition with #refs to objects that are not included in the document.

I couldn't find a way through schemars native to emit a SchemaObject from a RootSchema with all the refs replaces with the definitions themselves, so I manually edited the resulting .json file. I ensured that deserializing this to a schemars::SchemaObject still works.

@j-lanson j-lanson added type: bug Something isn't working type: chore Clean up or management task. product: rust-sdk Relates to the Rust plugin SDK labels Sep 27, 2024
@j-lanson j-lanson added this to the 3.7.0 milestone Sep 27, 2024
@j-lanson j-lanson self-assigned this Sep 27, 2024
@alilleybrinker alilleybrinker merged commit 3eb0ef5 into main Sep 27, 2024
6 checks passed
@alilleybrinker alilleybrinker deleted the jlanson/adjust-schemars branch November 5, 2024 06:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
product: rust-sdk Relates to the Rust plugin SDK type: bug Something isn't working type: chore Clean up or management task.
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Plugin system "schema" type inconsistency
2 participants