Skip to content

Validate required + default properties #345

@sebas-intellegens

Description

@sebas-intellegens

using petstore.yaml
and the "required_param_has_default": "error" config option

adding default: some_string here on a parameter and running lint-openapi does correctly return an error

however setting default: some_string here on a property does not return a error

the config option "required_param_has_default": "error" refers to param so I guess this excludes request body objects etc (?)
if so, I was wondering if this is something that makes sense to add (because it seems equally incorrect on a param and request body object's prop)?

(I'm using version 0.51.3)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions