Golang client can use pattern-based discriminator between oneOf (#18760)

* Enable reading schemas with pattern-based discriminator between oneOf for golang client #5311

* Codegen after changing to golang templates #5311
This commit is contained in:
Max Lapshin
2024-06-13 11:31:36 +03:00
committed by GitHub
parent 26a164e57f
commit 788fd6f725
22 changed files with 162 additions and 32 deletions

View File

@@ -14,5 +14,5 @@ type Category struct {
Id int64 `json:"id,omitempty"`
Name string `json:"name,omitempty"`
Name string `json:"name,omitempty" validate:"regexp=^[a-zA-Z0-9]+[a-zA-Z0-9\\\\.\\\\-_]*[a-zA-Z0-9]+$"`
}