Auto-generating the request schema validators #1500
-
Hi there, I am wondering if there is a way currently to auto-generate the Request Schema Validators per lambda function based on System.Component.DataAnnotations. The way I am doing this currently is quite manual and it would be a great feature to make it automatic similar to current Resource generation. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
@HeavilyPlayed Good afternoon. I might be wrong, are you referring to JSON schema as mentioned at Working with models and mapping templates and OpenAPI definitions of a sample API with basic request validation. Is this correct? To understand the issue properly, could you share a sample code solution along with the possible manual work you are trying to do? I'm unaware of any automated way to configure request schema validators per Lambda function. cc @normj |
Beta Was this translation helpful? Give feedback.
-
Hello! Reopening this discussion to make it searchable. |
Beta Was this translation helpful? Give feedback.
@HeavilyPlayed Good afternoon. I might be wrong, are you referring to JSON schema as mentioned at Working with models and mapping templates and OpenAPI definitions of a sample API with basic request validation. Is this correct? To understand the issue properly, could you share a sample code solution along with the possible manual work you are trying to do? I'm unaware of any automated way to configure request schema validators per Lambda function.
cc @normj