> ## Documentation Index
> Fetch the complete documentation index at: https://tyk.io/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Resolve the merged schema for an object type



## OpenAPI

````yaml /swagger/5.16/ai-studio-swagger.yml get /metadata/schemas/resolve
openapi: 3.0.1
info:
  title: Midsommar API
  description: This is the API for the Midsommar user and group management system.
  termsOfService: http://swagger.io/terms/
  contact:
    name: API Support
    url: http://www.swagger.io/support
    email: support@swagger.io
  license:
    name: Apache 2.0
    url: http://www.apache.org/licenses/LICENSE-2.0.html
  version: '1.0'
servers:
  - url: //localhost:8080/api/v1
security: []
paths:
  /metadata/schemas/resolve:
    get:
      tags:
        - governed-metadata
      summary: Resolve the merged schema for an object type
      parameters:
        - name: object_type
          in: query
          description: Object type (llm, tool, datasource, plugin_resource:<id>:<slug>)
          required: true
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            '*/*':
              schema:
                $ref: '#/components/schemas/governed_metadata.ResolvedSchema'
components:
  schemas:
    governed_metadata.ResolvedSchema:
      type: object
      properties:
        enforcement:
          type: string
        fields:
          type: array
          items:
            $ref: '#/components/schemas/models.MetadataFieldDef'
        json_schema:
          type: object
          additionalProperties: true
        object_type:
          type: string
        schema_slugs:
          type: array
          items:
            type: string
        vocabularies:
          type: object
          additionalProperties:
            type: array
            items:
              $ref: '#/components/schemas/models.VocabularyTerm'
          description: >-
            Vocabularies holds the terms of every vocabulary referenced by
            Fields,

            keyed by slug, so a consumer can render selects with labels without
            a

            second round-trip (plugins only see this via the management API).
    models.MetadataFieldDef:
      type: object
      properties:
        description:
          type: string
        gateway_visible:
          type: boolean
        key:
          type: string
        label:
          type: string
        max:
          type: number
        max_length:
          type: integer
        min:
          type: number
        order:
          type: integer
        pattern:
          type: string
        portal_visible:
          type: boolean
        required:
          type: boolean
        required_on_publish:
          type: boolean
          description: >-
            RequiredOnPublish makes the field mandatory only when the object
            goes

            live (activate / enable): a submitter can save a draft without it,
            but

            the publish is refused until it is filled. Independent of Required.
        severity:
          type: string
          description: error (default) | warning
        type:
          type: string
        vocabulary_slug:
          type: string
        warn_if_past:
          type: boolean
          description: 'date fields: warn when the value is in the past'
    models.VocabularyTerm:
      type: object
      properties:
        deprecated:
          type: boolean
        description:
          type: string
        label:
          type: string
        value:
          type: string

````