Skip to content

[cmd/mdatagen] Implement numeric validation in generated Go config code #14806

Description

@jkoronaAtCisco

Part of #14809

Implement support for the JSON Schema numeric validation keywords in Go code generated by mdatagen.

Scope

  • minimum: Value must be >= the specified minimum.
  • maximum: Value must be <= the specified maximum.
  • exclusiveMinimum: Value must be > the specified bound.
  • exclusiveMaximum: Value must be < the specified bound.

Acceptance Criteria

  • Generated Validate() methods enforce all four numeric constraints.
  • Validation errors clearly indicate the violated bound and allowed range.
  • Unit tests cover boundary values and invalid inputs for each keyword.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    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