Skip to content

Feature request: Ajv formats addFormat support #60

@cfuerst

Description

@cfuerst

Hi There 👋 first of all thank you for this great GitHub action ❤️

I need to do exactly what you supporting here with the addition that I have custom formats in my schema.

For example:

// in the validator itself:
ajv.addFormat("cron_expression", /(((\d+,)+\d+|(\d+(\/|-)\d+)|\d+|\*) ?){5,7}/)

// json
{
  "some_property_name": { "type": "string", "format": "cron_expression" }
}

Could (and would you be open to) you imagine a smart and generic way how this action could support custom formats?
If so I would be happy to try to drive a PR regarding that.

Cheers

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions