Vue OpenAPI Query Documentation
    Preparing search index...

    Function resolveSchema

    • Compose a self-contained standard JSON Schema document for one operation. Feed the result directly to AJV, JSONForms, vjsf, RJSF, etc.

      Accepts undefined so requestSchemas[op] / responseSchemas[op] lookups (which are Partial records) can be passed directly; throws a clear error when the operation has no emitted schema. Boolean schemas are returned as-is (they are already self-contained).

      Parameters

      Returns ValueSchemaObject

      const schema = resolveSchema(requestSchemas.createVessel, schemaDefs)
      const validate = new Ajv().compile(schema)
    • Compose a self-contained standard JSON Schema document for one operation. Feed the result directly to AJV, JSONForms, vjsf, RJSF, etc.

      Accepts undefined so requestSchemas[op] / responseSchemas[op] lookups (which are Partial records) can be passed directly; throws a clear error when the operation has no emitted schema. Boolean schemas are returned as-is (they are already self-contained).

      Parameters

      Returns ValueSchema

      const schema = resolveSchema(requestSchemas.createVessel, schemaDefs)
      const validate = new Ajv().compile(schema)