Skip to content

Commit

Permalink
fix: fix e2e example snapshots to include check for proper prefix gen…
Browse files Browse the repository at this point in the history
…eration
  • Loading branch information
malis42 committed Feb 6, 2024
1 parent a9c3a81 commit 4ad705e
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/grumpy-rings-beam.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@redocly/cli": patch
---

Fixed an issue where using `--prefix-components-with-info-prop` option with `join` command caused `$refs` to include duplicated prefixes.
3 changes: 3 additions & 0 deletions __tests__/join/prefix-components-with-info-prop/bar.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,6 @@ components:
some-property:
description: bar description
type: string
another-property:
description: description
$ref: '#/components/schemas/some-property'
3 changes: 3 additions & 0 deletions __tests__/join/prefix-components-with-info-prop/foo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,6 @@ components:
some-property:
description: foo description
type: string
another-property:
description: description
$ref: '#/components/schemas/some-property'
6 changes: 6 additions & 0 deletions __tests__/join/prefix-components-with-info-prop/snapshot.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,15 @@ components:
Foo Example OpenAPI 3 definition foo._some-property:
description: foo description
type: string
Foo Example OpenAPI 3 definition foo._another-property:
description: description
$ref: '#/components/schemas/Foo Example OpenAPI 3 definition foo._some-property'
Bar Example OpenAPI 3 definition._some-property:
description: bar description
type: string
Bar Example OpenAPI 3 definition._another-property:
description: description
$ref: '#/components/schemas/Bar Example OpenAPI 3 definition._some-property'
x-tagGroups:
- name: Foo Example OpenAPI 3 definition foo.
tags:
Expand Down

0 comments on commit 4ad705e

Please sign in to comment.