diff --git a/.github/workflows/readme-openapi.yml b/.github/workflows/readme-openapi.yml new file mode 100644 index 0000000000..14e9887dd6 --- /dev/null +++ b/.github/workflows/readme-openapi.yml @@ -0,0 +1,28 @@ +name: ReadMe GitHub Action 🦉 + +on: + push: + branches: + - master + +jobs: + rdme-openapi: + runs-on: ubuntu-latest + steps: + - name: Check out repo + uses: actions/checkout@v3 + + - name: Use Node.js 20.x + uses: actions/setup-node@v4 + with: + node-version: 20.x + cache: yarn + - run: yarn --frozen-lockfile + + - name: update specs + run: cd packages/server && yarn specs + + - name: Run `openapi` command + uses: readmeio/rdme@v8 + with: + rdme: openapi specs/openapi.yaml --key=${{ secrets.README_API_KEY }} --id=6728a74f5918b50036c61841 diff --git a/packages/server/specs/openapi.json b/packages/server/specs/openapi.json index c47a14cf21..9d356b9931 100644 --- a/packages/server/specs/openapi.json +++ b/packages/server/specs/openapi.json @@ -2166,7 +2166,6 @@ "query": { "description": "Search parameters for view", "type": "object", - "required": [], "properties": { "logicalOperator": { "description": "When using groups this defines whether all of the filters must match, or only one of them.", @@ -2449,7 +2448,6 @@ "query": { "description": "Search parameters for view", "type": "object", - "required": [], "properties": { "logicalOperator": { "description": "When using groups this defines whether all of the filters must match, or only one of them.", @@ -2743,7 +2741,6 @@ "query": { "description": "Search parameters for view", "type": "object", - "required": [], "properties": { "logicalOperator": { "description": "When using groups this defines whether all of the filters must match, or only one of them.", diff --git a/packages/server/specs/openapi.yaml b/packages/server/specs/openapi.yaml index edfb29f432..9ad242f24c 100644 --- a/packages/server/specs/openapi.yaml +++ b/packages/server/specs/openapi.yaml @@ -1802,7 +1802,6 @@ components: query: description: Search parameters for view type: object - required: [] properties: logicalOperator: description: When using groups this defines whether all of the filters must @@ -2012,7 +2011,6 @@ components: query: description: Search parameters for view type: object - required: [] properties: logicalOperator: description: When using groups this defines whether all of the filters must @@ -2229,7 +2227,6 @@ components: query: description: Search parameters for view type: object - required: [] properties: logicalOperator: description: When using groups this defines whether all of the filters must diff --git a/packages/server/specs/resources/view.ts b/packages/server/specs/resources/view.ts index aeb2b97aa9..5becd67a37 100644 --- a/packages/server/specs/resources/view.ts +++ b/packages/server/specs/resources/view.ts @@ -142,7 +142,6 @@ layeredFilterGroup.items.properties.groups = filterGroup const viewQuerySchema = { description: "Search parameters for view", type: "object", - required: [], properties: { logicalOperator, onEmptyFilter: {