Is your feature request related to a problem?
JSON Schema provides the format keyword to validate common string patterns like email, uri, date, etc. Our
cli.schema.json should explicitly allow and demonstrate this powerful feature for string-based arguments and
options. This makes the schema more robust.
Describe the solution you'd like
Tasks:
- In schema/cli.schema.json, locate the definitions for string properties within options and arguments.
- Ensure the format keyword is a valid property for any property of type: 'string'.
- In the examples/demo-init.yml file, add a new option to an existing command that uses a format, for
example:
1 - name: --admin-email
2 type: string
3 description: The administrator's email address.
4 format: email
4. Add a test case to test/validate.test.js to confirm that validation correctly passes with a valid email and
fails with an invalid one for this new example.
Describe alternatives you've considered
No response
Additional Context
No response
Is your feature request related to a problem?
JSON Schema provides the format keyword to validate common string patterns like email, uri, date, etc. Our
cli.schema.json should explicitly allow and demonstrate this powerful feature for string-based arguments and
options. This makes the schema more robust.
Describe the solution you'd like
Tasks:
example:
1 - name: --admin-email
2 type: string
3 description: The administrator's email address.
4 format: email
4. Add a test case to test/validate.test.js to confirm that validation correctly passes with a valid email and
fails with an invalid one for this new example.
Describe alternatives you've considered
No response
Additional Context
No response