Skip to content

EnvironmentDTO schema in OpenAPI spec is stale (width/height instead of creationDate) #153

Description

@dmccoystephenson

Summary

docs/openapi/viron-api.json defines EnvironmentDTO with properties environmentId, name, width, height. The actual DTO (src/main/java/preponderous/viron/dto/EnvironmentDto.java) has environmentId, name, creationDate — no width/height. The spec schema does not match the wire representation.

Evidence

  • EnvironmentDto.java: fields environmentId, name, creationDate.
  • docs/openapi/viron-api.jsoncomponents.schemas.EnvironmentDTO: {environmentId, name, width, height}.

Proposed fix

Update the spec's EnvironmentDTO schema to { environmentId: integer, name: string, creationDate: string }.

Notes

Found during #135 (entity-resource spec authoring). Out of scope for that PR (entity-only); filed for a spec-accuracy pass.


Filed by Claude on behalf of Daniel Stephenson.

Metadata

Metadata

Assignees

No one assigned

    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