> ## 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.

# Validate governed metadata values without saving



## OpenAPI

````yaml /swagger/5.16/ai-studio-swagger.yml post /metadata/validate
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/validate:
    post:
      tags:
        - governed-metadata
      summary: Validate governed metadata values without saving
      requestBody:
        description: Values
        content:
          '*/*':
            schema:
              $ref: '#/components/schemas/api.ValidateMetadataInput'
        required: true
      responses:
        '200':
          description: OK
          content:
            '*/*':
              schema:
                $ref: '#/components/schemas/governed_metadata.ValidationResult'
components:
  schemas:
    api.ValidateMetadataInput:
      type: object
      properties:
        object_type:
          type: string
        values:
          type: object
          additionalProperties: true
    governed_metadata.ValidationResult:
      type: object
      properties:
        enforced:
          type: boolean
          description: resolved schema enforcement == enforce
        errors:
          type: array
          items:
            $ref: '#/components/schemas/governed_metadata.FieldIssue'
        valid:
          type: boolean
          description: no hard errors
        warnings:
          type: array
          items:
            $ref: '#/components/schemas/governed_metadata.FieldIssue'
    governed_metadata.FieldIssue:
      type: object
      properties:
        code:
          type: string
        field:
          type: string
        message:
          type: string

````