Closed Hona closed 1 month ago
I have the following:
// Allow Strong IDs to generate nice OpenAPI schemas [assembly: VogenDefaults( openApiSchemaCustomizations: OpenApiSchemaCustomizations.GenerateSwashbuckleMappingExtensionMethod )]
Then this strong ID
[ValueObject<Guid>] public readonly partial record struct GameId;
This hints to a string, which is correct. However, we can add the format for a more accurate schema:
type: string format: uuid
Hi - thanks for your feedback. This has now been implemented and will be in the next release
Before (Product.Id):
Product.Id
After:
Sweet, thanks!
Describe the feature
I have the following:
Then this strong ID
This hints to a string, which is correct. However, we can add the format for a more accurate schema: