Skip to content

Conversation

@snejugal
Copy link
Contributor

The field json_schema: Schema on SchemaObject has #[serde(flatten)]. This is fine if this field is assigned the Schema::Object(..) variant, but there's also the other variant Schema::Bool(bool) which cannot be flattened. I'd wish to just fix the definition of SchemaObject to require a schemars::schema::SchemaObject and guarantee that no boolean scheme ever occurs there, but this field is public and thus changing its type is a breaking change. So for now I found a place where a boolean scheme may (and does in practice) occur and added an appropriate conversion.

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.

1 participant