FAQ

  • GitHub GitHub Repo stars
  • Discord Discord Server
  • ✨ New! Try the OpenAPI Doctor ✨ The OpenAPI Doctor

    schemaTypeCheck


    schemaTypeCheck will check a schema to ensure that it has a valid type, and passes basic type validation.

    Example ruleset configuration

    schema-type-check:
      description: "Check a schema passes a basic type and type validation check"
      type: "validation"
      recommended: true
      severity: "error"
      given: "$"
      then:
        function: "schemaTypeCheck"
    

    The function is used by the oas-schema-check Rule


    View Function Source