Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@kanarus
Copy link
Member

@kanarus kanarus commented Feb 12, 2025

closes #330

Use schema_fn() instead for the field/variant. schema_fn :

  • must be callable as fn() -> impl Into<ohkami::openapi::SchemaRef>
  • can be a path like schema_fns::a_schema

@kanarus kanarus merged commit 4812474 into v0.23 Feb 12, 2025
3 checks passed
@kanarus kanarus deleted the openapi/schema_with branch February 12, 2025 11:22
@kanarus kanarus linked an issue Feb 12, 2025 that may be closed by this pull request
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.

support #[openapi(schema_with = "func")] in #[derive(Schema)]

1 participant