Skip to content

fix: Use AnatineSchemaObject in openapi extension method#238

Merged
Brian-McBride merged 1 commit intoanatine:mainfrom
kamilogorek:use-extended-schema-object
Apr 4, 2025
Merged

fix: Use AnatineSchemaObject in openapi extension method#238
Brian-McBride merged 1 commit intoanatine:mainfrom
kamilogorek:use-extended-schema-object

Conversation

@kamilogorek
Copy link
Copy Markdown
Contributor

This change allows hideDefinition use directly in .openapi() extension method.

z.object({
  one: z.string(),
  two: z.number()
})
.openapi({
  hideDefinition: ['two']
})

Example above do not work right now, as hideDefinition is specified as an additional property on AnatineSchemaObject, not SchemaObject itself.

@nx-cloud
Copy link
Copy Markdown

nx-cloud Bot commented Jan 28, 2025

View your CI Pipeline Execution ↗ for commit cbf5985.

Command Status Duration Result
nx affected:test --base=origin/main --codeCoverage ✅ Succeeded 22s View ↗
nx affected:lint --base=origin/main ✅ Succeeded 4s View ↗

☁️ Nx Cloud last updated this comment at 2025-01-28 19:50:39 UTC

@Brian-McBride Brian-McBride merged commit 8180a43 into anatine:main Apr 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants