Skip to content
This repository was archived by the owner on Feb 5, 2026. It is now read-only.
This repository was archived by the owner on Feb 5, 2026. It is now read-only.

Types generator use constants for hardcoded empty strings #8

@seseloos

Description

@seseloos

Replace empty string "" within generator/types_generator.go with constants that have proper names to improve the readability and understanding of the code.

See the following lines of generator/types_generator.go as an example.

} else {
typ, err := types.FromSimpleSchema("", &parameter.SimpleSchema, parameter.Required, &parameter.CommonValidations)
gen.validators.AddAll(typ.GetValidators())
return typ, err
}

Also see the suggestion of @donutloop in pull request #5 for further information.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions