Prechecker is a step that runs before the modeler that will validate and fix up the OpenAPI spec.
Prechecker will look for schema that should be defined as type: "object"
but are missing the type
property. It will automatically inject the type: "object"
field.
Note: This is a warning and was added for backward compatiblity. It is not recommended to omit the type: "object"
Prechecker will look for schemas that use allOf
referencing an empty schema. In that case it will remove the reference.
Prechecker will compare all the schemas and check for duplicates.
Prechecker will check redefinition of properties in child schemas. If a child schema redefine a property already defined in a parent schema(Using allOf
).
It will:
readOnly
property it will remove the redefinition and log a warning(Ignoring the change to readOnly
).Prechecker will check that there isn’t duplication in the parent(allOf
) tree. It will raise an error if there is.