import type { FromSchema } from 'json-schema-to-ts';

export const asyncApiDocsConfigSchema = {
  type: 'object',
  properties: {
    schemaId: { type: 'string' },
    hideInfo: { type: 'boolean' },
    hideOperations: { type: 'boolean' },
    hideServers: { type: 'boolean' },
    hideMessages: { type: 'boolean' },
    hideSchemas: { type: 'boolean' },
  },
  additionalProperties: false,
} as const;

export type AsyncApiDocsSettings = FromSchema<typeof asyncApiDocsConfigSchema>;
