Skip to content

Include validation in the openapi.http.proxy generator#586

Merged
jfallows merged 9 commits intoaklivity:developfrom
attilakreiner:openapi-gen-validator
Nov 28, 2023
Merged

Include validation in the openapi.http.proxy generator#586
jfallows merged 9 commits intoaklivity:developfrom
attilakreiner:openapi-gen-validator

Conversation

@attilakreiner
Copy link
Contributor

Description

Include validation in the generate command in the openapi.http.proxy template

Fixes #459

this.schema = schema;
}

public String getType()
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I am using jsonb for serialization. I didn't find a workaround to change the method names from get...(). The @JsonbProperty annotation seems to work only on methods that follow the naming convention.

Copy link
Contributor

@jfallows jfallows left a comment

Choose a reason for hiding this comment

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

Let's keep our code clear of using the commons-collections transitive dependency.

@attilakreiner
Copy link
Contributor Author

attilakreiner commented Nov 28, 2023

Let's keep our code clear of using the commons-collections transitive dependency.

Sure, done.

@jfallows jfallows merged commit db0e060 into aklivity:develop Nov 28, 2023
@attilakreiner attilakreiner deleted the openapi-gen-validator branch November 29, 2023 10:43
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.

Generate http server request validators from OpenAPI specification

2 participants