Skip to content

Allow ff tag annotations to be used with schema generation, outside SwggerGen#209

Merged
EnriqueL8 merged 6 commits intomainfrom
externalize-tag-handler
Apr 9, 2026
Merged

Allow ff tag annotations to be used with schema generation, outside SwggerGen#209
EnriqueL8 merged 6 commits intomainfrom
externalize-tag-handler

Conversation

@peterbroadhurst
Copy link
Copy Markdown
Contributor

@peterbroadhurst peterbroadhurst commented Mar 5, 2026

There are cases where being able to use openapi3gen.NewSchemaRefForValue() directly is very useful, but still exploiting all the value from ffstruct etc. tags that have been documented on structs via the FF-common framework.

This PR also allows ExportComponentOpts from openapi3gen to be optionally specified in the SwaggerGenOptions

…f SwaggerGen

Signed-off-by: Peter Broadhurst <peter.broadhurst@kaleido.io>
@peterbroadhurst peterbroadhurst requested a review from a team as a code owner March 5, 2026 21:50
Signed-off-by: Peter Broadhurst <peter.broadhurst@kaleido.io>
Signed-off-by: Peter Broadhurst <peter.broadhurst@kaleido.io>
Signed-off-by: Peter Broadhurst <peter.broadhurst@kaleido.io>
Signed-off-by: Peter Broadhurst <peter.broadhurst@kaleido.io>
Context DB txn timeout, and interface to avoid connection leak during migration
Copy link
Copy Markdown
Contributor

@EnriqueL8 EnriqueL8 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good - a few comments

Comment on lines -354 to -358
(&SwaggerGen{
options: &SwaggerGenOptions{
PanicOnMissingDescription: true,
},
}).Generate(context.Background(), []*Route{{
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Feels like the expanded version was nicer to read

@EnriqueL8 EnriqueL8 merged commit 70619c6 into main Apr 9, 2026
5 checks passed
@EnriqueL8 EnriqueL8 deleted the externalize-tag-handler branch April 9, 2026 11:33
@EnriqueL8 EnriqueL8 restored the externalize-tag-handler branch April 9, 2026 11:36
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