rlz-engine 1.0.41 → 1.0.42
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -5,8 +5,8 @@ import { logout, signin, signup } from './utils.js';
|
|
|
5
5
|
export const AUTH_API = fastifyPlugin(async function authApi(app, { storage }) {
|
|
6
6
|
app.post('/api/v0/signup', {
|
|
7
7
|
schema: {
|
|
8
|
-
body: API_SIGNUP_REQUEST_SCHEMA_V0.toJSONSchema(),
|
|
9
|
-
response: { 200: API_AUTH_RESPONSE_SCHEMA_V0.toJSONSchema() }
|
|
8
|
+
body: API_SIGNUP_REQUEST_SCHEMA_V0.toJSONSchema({ target: 'draft-07' }),
|
|
9
|
+
response: { 200: API_AUTH_RESPONSE_SCHEMA_V0.toJSONSchema({ target: 'draft-07' }) }
|
|
10
10
|
}
|
|
11
11
|
}, async (req, _resp) => {
|
|
12
12
|
const body = API_SIGNUP_REQUEST_SCHEMA_V0.parse(req.body);
|
|
@@ -14,8 +14,8 @@ export const AUTH_API = fastifyPlugin(async function authApi(app, { storage }) {
|
|
|
14
14
|
});
|
|
15
15
|
app.post('/api/v0/signin', {
|
|
16
16
|
schema: {
|
|
17
|
-
body: API_SIGNIN_REQUEST_SCHEMA_V0.toJSONSchema(),
|
|
18
|
-
response: { 200: API_AUTH_RESPONSE_SCHEMA_V0.toJSONSchema() }
|
|
17
|
+
body: API_SIGNIN_REQUEST_SCHEMA_V0.toJSONSchema({ target: 'draft-07' }),
|
|
18
|
+
response: { 200: API_AUTH_RESPONSE_SCHEMA_V0.toJSONSchema({ target: 'draft-07' }) }
|
|
19
19
|
}
|
|
20
20
|
}, async (req, _resp) => {
|
|
21
21
|
const body = API_SIGNIN_REQUEST_SCHEMA_V0.parse(req.body);
|
package/dist/back/rpc/rpc.js
CHANGED
|
@@ -10,9 +10,9 @@ function makeReg(pluginName, endpoint) {
|
|
|
10
10
|
reg(app, opts) {
|
|
11
11
|
app.post(`/rpc/${pluginName}_${this.name}_v${this.v}`, {
|
|
12
12
|
schema: {
|
|
13
|
-
body: this.bodySchema.toJSONSchema(),
|
|
13
|
+
body: this.bodySchema.toJSONSchema({ target: 'draft-07' }),
|
|
14
14
|
response: {
|
|
15
|
-
200: this.respSchema.toJSONSchema()
|
|
15
|
+
200: this.respSchema.toJSONSchema({ target: 'draft-07' })
|
|
16
16
|
}
|
|
17
17
|
}
|
|
18
18
|
}, endpoint.anonimous === true
|