Info Microcks Extension Valid

info-microcks-extension-valid

info experience: governanceexperience: consistency spec: info

x-microcks extension must be valid

x-microcks extension must be valid.

Rule definition

The full Spotlight rule — drop it into a ruleset (.spotlight.yaml / .spectral.yaml) and run it with any Spotlight tool.

info-microcks-extension-valid:
  title: Info Microcks Extension Valid
  reference: https://spotlight-rules.com/spec/rules/openapi/info-microcks-extension-valid/
  description: x-microcks extension must be valid.
  message: x-microcks extension must be valid
  severity: info
  given: $.info.x-microcks
  then:
    function: schema
    functionOptions:
      schema:
        type: object
        properties:
          labels:
            type: object
            additionalProperties:
              type: string
        required:
          - labels
        additionalProperties: false
  formats:
    - oas3
    - aas2
    - aas3
  tags:
    - format:openapi
    - spec:info
    - experience:governance
    - experience:consistency
  prompt: "You are editing an OpenAPI document to satisfy the Spotlight API
    governance rule 'info-microcks-extension-valid' (Info Microcks Extension
    Valid). Requirement: x-microcks extension must be valid. To fix: Adjust the
    targeted value so it conforms to the schema this rule requires. This rule is
    evaluated at the JSONPath `$.info.x-microcks` — inspect every location it
    matches and correct only what violates the rule. Make the smallest change
    that satisfies the rule, leave all unrelated content, key order, comments,
    and formatting unchanged, and keep the document valid OpenAPI. Return only
    the complete corrected document, with no commentary."
AI fix prompt — send this to Claude, Gemini, or ChatGPT with your artifact to auto-fix this rule
You are editing an OpenAPI document to satisfy the Spotlight API governance rule 'info-microcks-extension-valid' (Info Microcks Extension Valid). Requirement: x-microcks extension must be valid. To fix: Adjust the targeted value so it conforms to the schema this rule requires. This rule is evaluated at the JSONPath `$.info.x-microcks` — inspect every location it matches and correct only what violates the rule. Make the smallest change that satisfies the rule, leave all unrelated content, key order, comments, and formatting unchanged, and keep the document valid OpenAPI. Return only the complete corrected document, with no commentary.
ArtifactOpenAPI
Applies at (given)$.info.x-microcks
Severityinfo — educational by default; raise to warn/error to enforce
Referencehttps://spotlight-rules.com/spec/rules/openapi/info-microcks-extension-valid/