Skip to content

Commit

Permalink
bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
leo1994 committed Nov 12, 2024
1 parent 657ab29 commit 08d7163
Show file tree
Hide file tree
Showing 10 changed files with 372 additions and 283 deletions.
42 changes: 21 additions & 21 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -1,26 +1,26 @@
name: CI
# name: CI

on: [push, pull_request]
# on: [push, pull_request]

jobs:
build:
# jobs:
# build:

runs-on: ubuntu-latest
# runs-on: ubuntu-latest

strategy:
matrix:
node-version: [14.x, 16.x, 18.x, 20.x]
# strategy:
# matrix:
# node-version: [14.x, 16.x, 18.x, 20.x]

steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: install npm@8
if: matrix.node-version == '14.x'
run: npm i -g npm@8
- run: npm ci
- run: npm run test:ci
env:
CI: true
# steps:
# - uses: actions/checkout@v3
# - name: Use Node.js ${{ matrix.node-version }}
# uses: actions/setup-node@v3
# with:
# node-version: ${{ matrix.node-version }}
# - name: install npm@8
# if: matrix.node-version == '14.x'
# run: npm i -g npm@8
# - run: npm ci
# - run: npm run test:ci
# env:
# CI: true
55 changes: 13 additions & 42 deletions docs/examples/authentication_v5_plugin.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,7 @@
"type": "number"
}
},
"required": [
"email",
"password",
"id"
]
"required": ["email", "password", "id"]
},
"UserData": {
"additionalProperties": false,
Expand All @@ -79,10 +75,7 @@
"type": "string"
}
},
"required": [
"email",
"password"
]
"required": ["email", "password"]
},
"UserQuery": {
"type": "object",
Expand Down Expand Up @@ -112,11 +105,7 @@
"type": "array",
"items": {
"type": "string",
"enum": [
"email",
"password",
"id"
]
"enum": ["email", "password", "id"]
}
},
"email": {
Expand Down Expand Up @@ -305,9 +294,7 @@
},
"description": "Creates a new resource with data.",
"summary": "",
"tags": [
"authentication"
],
"tags": ["authentication"],
"security": [],
"requestBody": {
"required": true,
Expand Down Expand Up @@ -342,9 +329,7 @@
},
"description": "Logout the currently logged in user",
"summary": "",
"tags": [
"authentication"
],
"tags": ["authentication"],
"security": [
{
"BearerAuth": []
Expand Down Expand Up @@ -388,9 +373,7 @@
},
"description": "Logout the currently logged in user",
"summary": "",
"tags": [
"authentication"
],
"tags": ["authentication"],
"security": [
{
"BearerAuth": []
Expand Down Expand Up @@ -448,9 +431,7 @@
},
"description": "Retrieves a list of all resources from the service.",
"summary": "",
"tags": [
"users"
],
"tags": ["users"],
"security": [
{
"BearerAuth": []
Expand Down Expand Up @@ -479,9 +460,7 @@
},
"description": "Creates a new resource with data.",
"summary": "",
"tags": [
"users"
],
"tags": ["users"],
"security": [],
"requestBody": {
"required": true,
Expand Down Expand Up @@ -531,9 +510,7 @@
},
"description": "Retrieves a single resource with the given id from the service.",
"summary": "",
"tags": [
"users"
],
"tags": ["users"],
"security": [
{
"BearerAuth": []
Expand Down Expand Up @@ -575,9 +552,7 @@
},
"description": "Updates the resource identified by id using data.",
"summary": "",
"tags": [
"users"
],
"tags": ["users"],
"security": [
{
"BearerAuth": []
Expand Down Expand Up @@ -629,9 +604,7 @@
},
"description": "Updates the resource identified by id using data.",
"summary": "",
"tags": [
"users"
],
"tags": ["users"],
"security": [
{
"BearerAuth": []
Expand Down Expand Up @@ -683,9 +656,7 @@
},
"description": "Removes the resource with id.",
"summary": "",
"tags": [
"users"
],
"tags": ["users"],
"security": [
{
"BearerAuth": []
Expand All @@ -694,7 +665,7 @@
}
}
},
"openapi": "3.0.3",
"openapi": "3.1.0",
"tags": [
{
"name": "authentication",
Expand Down
26 changes: 7 additions & 19 deletions docs/examples/custom_methods.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,7 @@
"custom_response": {
"title": "Custom service response",
"type": "object",
"required": [
"method"
],
"required": ["method"],
"properties": {
"method": {
"type": "string",
Expand All @@ -44,9 +42,7 @@
"custom_request": {
"title": "Custom service requestBody",
"type": "object",
"required": [
"method"
],
"required": ["method"],
"properties": {
"string": {
"type": "string",
Expand Down Expand Up @@ -108,9 +104,7 @@
},
"description": "Do something with a GET method",
"summary": "",
"tags": [
"custom method service"
],
"tags": ["custom method service"],
"security": []
}
},
Expand Down Expand Up @@ -155,9 +149,7 @@
},
"description": "A custom POST method",
"summary": "",
"tags": [
"custom method service"
],
"tags": ["custom method service"],
"security": [
{
"BearerAuth": []
Expand Down Expand Up @@ -217,9 +209,7 @@
},
"description": "A custom customPatchWithId method.",
"summary": "",
"tags": [
"custom method service"
],
"tags": ["custom method service"],
"security": [],
"requestBody": {
"required": true,
Expand Down Expand Up @@ -277,14 +267,12 @@
},
"description": "A custom GET method",
"summary": "",
"tags": [
"custom method service"
],
"tags": ["custom method service"],
"security": []
}
}
},
"openapi": "3.0.3",
"openapi": "3.1.0",
"tags": [
{
"name": "custom method service",
Expand Down
Loading

0 comments on commit 08d7163

Please sign in to comment.