Skip to content

Commit 7cae193

Browse files
authored
Merge branch 'main' of Redocly/openapi-sampler into fix/xml-root-and-composition
Brings in Redocly#224, Redocly#226, Redocly#227 and Redocly#228. No conflicts.
2 parents d4be662 + f12225d commit 7cae193

12 files changed

Lines changed: 1976 additions & 4405 deletions

‎.eslintrc‎

Lines changed: 0 additions & 12 deletions
This file was deleted.
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Lint, Test & Build
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches:
7+
- main
8+
9+
concurrency:
10+
group: ${{ github.workflow }}-${{ github.ref }}
11+
cancel-in-progress: true
12+
13+
permissions:
14+
contents: read
15+
16+
jobs:
17+
lint-test-build:
18+
name: Lint, Test & Build
19+
runs-on: ubuntu-latest
20+
steps:
21+
- name: Checkout Repo
22+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
23+
- name: Setup Node.js
24+
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
25+
with:
26+
node-version: 24.11.1
27+
cache: "npm"
28+
- name: Install Dependencies
29+
run: npm ci
30+
- name: Lint
31+
run: npm run lint
32+
- name: Unit Tests
33+
run: npx vitest run
34+
- name: Build
35+
run: npm run build

‎.github/workflows/release.yml‎

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,8 @@ jobs:
3131

3232
- name: Create Release Pull Request or Publish to npm
3333
id: changesets
34-
uses: changesets/action@v1
34+
uses: changesets/action@ae32849d5ba541f9ae29e40e22a623bc13562f51 # v2.1.2
3535
with:
36-
publish: npm run release
37-
commit: "chore: 🔖 release new versions"
38-
title: "chore: 🔖 release new versions"
39-
env:
40-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
36+
publish-script: npm run release
37+
commit-message: "chore: 🔖 release new versions"
38+
pr-title: "chore: 🔖 release new versions"

‎CHANGELOG.md‎

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,17 @@
11
# openapi-sampler
22

3+
## 1.7.8
4+
5+
### Patch Changes
6+
7+
- 35ee280: Fixed a regression from 1.7.7: a `$ref` inside `allOf` was sampled as `null`, and `skipReadOnly`/`skipWriteOnly` ignored a `$ref` inside `oneOf` or `anyOf`.
8+
9+
## 1.7.7
10+
11+
### Patch Changes
12+
13+
- e96c77e: Fixed an issue where keywords next to `$ref` (such as `example`, `examples`, `minimum`) were ignored. They are now applied unless the document is Swagger 2.0 or OpenAPI 3.0.
14+
315
## 1.7.6
416

517
### Patch Changes

‎jest.config.js‎

Lines changed: 0 additions & 15 deletions
This file was deleted.

0 commit comments

Comments
 (0)