Files
redocly-cli/__tests__/lint/assertions-patternProperties/snapshot.js
Andrew Tatomyr 9855904b3e fix: add separate node type for patternProperties (#1644)
* fix: add PatternProperties type to target patternProperties separately from properties

* add changeset

* remove redundancy

* commit redocly.yaml and update .gitignore to only target root redocly.yaml

* Update .changeset/sour-pandas-wave.md

Co-authored-by: JLekawa <164185257+JLekawa@users.noreply.github.com>

---------

Co-authored-by: JLekawa <164185257+JLekawa@users.noreply.github.com>
2024-07-25 18:46:33 +08:00

27 lines
704 B
JavaScript

// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`E2E lint assertions-patternProperties 1`] = `
validating /openapi.yaml...
[1] schema.json:4:5 at #/properties/incorrectlyNamedProperty
rule/response-in-snake_case failed because the SchemaProperties didn't meet the assertions: "incorrectlyNamedProperty" should use snake_case
2 | "type": "object",
3 | "properties": {
4 | "incorrectlyNamedProperty": {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
5 | "type": "string"
6 | },
Error was generated by the rule/response-in-snake_case rule.
/openapi.yaml: validated in <test>ms
❌ Validation failed with 1 error.
run \`redocly lint --generate-ignore-file\` to add all problems to the ignore file.
`;