Skip to content

Expand static code analysis testing to verify implementations respect OpenApi annotations with "required = true" #1494

@rma-psmorris

Description

@rma-psmorris

Is your feature request related to a problem? Please describe.
Static code analysis testing is not ensuring that tests on endpoint implementations with "required = true" parameters enforce that the parameter is supplied.

Describe the solution you'd like
Update static code analysis testing to fail when the above case occurs.

Describe alternatives you've considered

Additional context
Endpoint example that would need to be tested, getOne from TimeSeriesGroupController.
https://github.com/USACE/cwms-data-api/blob/develop/cwms-data-api/src/main/java/cwms/cda/api/TimeSeriesGroupController.java#L184

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions