Skip to content

Commit

Permalink
Validate oneOf as if it would be an anyOf
Browse files Browse the repository at this point in the history
  • Loading branch information
TimDiekmann committed Dec 11, 2024
1 parent 8fa0baa commit d169378
Show file tree
Hide file tree
Showing 4 changed files with 49 additions and 238 deletions.
123 changes: 3 additions & 120 deletions libs/@local/graph/api/openapi/openapi.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 5 additions & 9 deletions libs/@local/graph/api/src/rest/entity.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,11 @@ use hash_graph_types::{
ArrayItemNumberMismatch, ArrayValidationReport, DataTypeCanonicalCalculation,
DataTypeConversionError, DataTypeInferenceError, InvalidCanonicalValue,
JsonSchemaValueTypeMismatch, ObjectPropertyValidationReport,
ObjectValidationReport, OneOfArrayValidationReports, OneOfArrayValidationStatus,
OneOfObjectValidationReports, OneOfObjectValidationStatus,
OneOfPropertyValidationReports, OneOfValueValidationStatus,
PropertyArrayValidationReport, PropertyObjectValidationReport,
PropertyValidationReport, PropertyValueTypeMismatch, PropertyValueValidationReport,
ValueValidationError, ValueValidationReport,
ObjectValidationReport, OneOfArrayValidationReports, OneOfObjectValidationReports,
OneOfPropertyValidationReports, PropertyArrayValidationReport,
PropertyObjectValidationReport, PropertyValidationReport,
PropertyValueTypeMismatch, PropertyValueValidationReport, ValueValidationError,
ValueValidationReport,
},
},
},
Expand Down Expand Up @@ -199,12 +198,9 @@ use crate::rest::{
DataTypeInferenceError,
PropertyValueTypeMismatch,
InvalidCanonicalValue,
OneOfValueValidationStatus,
OneOfArrayValidationReports,
OneOfArrayValidationStatus,
PropertyArrayValidationReport,
OneOfObjectValidationReports,
OneOfObjectValidationStatus,
PropertyObjectValidationReport,
ValueValidationReport,
ValueValidationError,
Expand Down
Loading

0 comments on commit d169378

Please sign in to comment.