@furystack/rest-service 4.0.19
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.
- package/LICENSE +339 -0
- package/README.md +219 -0
- package/dist/actions/error-action.d.ts +14 -0
- package/dist/actions/error-action.d.ts.map +1 -0
- package/dist/actions/error-action.js +29 -0
- package/dist/actions/error-action.js.map +1 -0
- package/dist/actions/error-action.spec.d.ts +2 -0
- package/dist/actions/error-action.spec.d.ts.map +1 -0
- package/dist/actions/error-action.spec.js +51 -0
- package/dist/actions/error-action.spec.js.map +1 -0
- package/dist/actions/get-current-user.d.ts +11 -0
- package/dist/actions/get-current-user.d.ts.map +1 -0
- package/dist/actions/get-current-user.js +15 -0
- package/dist/actions/get-current-user.js.map +1 -0
- package/dist/actions/get-current-user.spec.d.ts +2 -0
- package/dist/actions/get-current-user.spec.d.ts.map +1 -0
- package/dist/actions/get-current-user.spec.js +20 -0
- package/dist/actions/get-current-user.spec.js.map +1 -0
- package/dist/actions/index.d.ts +7 -0
- package/dist/actions/index.d.ts.map +1 -0
- package/dist/actions/index.js +10 -0
- package/dist/actions/index.js.map +1 -0
- package/dist/actions/is-authenticated.d.ts +14 -0
- package/dist/actions/is-authenticated.d.ts.map +1 -0
- package/dist/actions/is-authenticated.js +17 -0
- package/dist/actions/is-authenticated.js.map +1 -0
- package/dist/actions/is-authenticated.spec.d.ts +2 -0
- package/dist/actions/is-authenticated.spec.d.ts.map +1 -0
- package/dist/actions/is-authenticated.spec.js +19 -0
- package/dist/actions/is-authenticated.spec.js.map +1 -0
- package/dist/actions/login-action.spec.d.ts +2 -0
- package/dist/actions/login-action.spec.d.ts.map +1 -0
- package/dist/actions/login-action.spec.js +35 -0
- package/dist/actions/login-action.spec.js.map +1 -0
- package/dist/actions/login.d.ts +16 -0
- package/dist/actions/login.d.ts.map +1 -0
- package/dist/actions/login.js +26 -0
- package/dist/actions/login.js.map +1 -0
- package/dist/actions/logout-action.spec.d.ts +2 -0
- package/dist/actions/logout-action.spec.d.ts.map +1 -0
- package/dist/actions/logout-action.spec.js +23 -0
- package/dist/actions/logout-action.spec.js.map +1 -0
- package/dist/actions/logout.d.ts +14 -0
- package/dist/actions/logout.d.ts.map +1 -0
- package/dist/actions/logout.js +20 -0
- package/dist/actions/logout.js.map +1 -0
- package/dist/actions/not-found-action.d.ts +10 -0
- package/dist/actions/not-found-action.d.ts.map +1 -0
- package/dist/actions/not-found-action.js +14 -0
- package/dist/actions/not-found-action.js.map +1 -0
- package/dist/actions/not-found-action.spec.d.ts +2 -0
- package/dist/actions/not-found-action.spec.d.ts.map +1 -0
- package/dist/actions/not-found-action.spec.js +17 -0
- package/dist/actions/not-found-action.spec.js.map +1 -0
- package/dist/add-cors-header.spec.d.ts +2 -0
- package/dist/add-cors-header.spec.d.ts.map +1 -0
- package/dist/add-cors-header.spec.js +99 -0
- package/dist/add-cors-header.spec.js.map +1 -0
- package/dist/api-manager.d.ts +61 -0
- package/dist/api-manager.d.ts.map +1 -0
- package/dist/api-manager.js +144 -0
- package/dist/api-manager.js.map +1 -0
- package/dist/authenticate.d.ts +5 -0
- package/dist/authenticate.d.ts.map +1 -0
- package/dist/authenticate.js +20 -0
- package/dist/authenticate.js.map +1 -0
- package/dist/authenticate.spec.d.ts +2 -0
- package/dist/authenticate.spec.d.ts.map +1 -0
- package/dist/authenticate.spec.js +59 -0
- package/dist/authenticate.spec.js.map +1 -0
- package/dist/authorize.d.ts +5 -0
- package/dist/authorize.d.ts.map +1 -0
- package/dist/authorize.js +22 -0
- package/dist/authorize.js.map +1 -0
- package/dist/authorize.spec.d.ts +2 -0
- package/dist/authorize.spec.d.ts.map +1 -0
- package/dist/authorize.spec.js +55 -0
- package/dist/authorize.spec.js.map +1 -0
- package/dist/endpoint-generators/create-delete-endpoint.d.ts +17 -0
- package/dist/endpoint-generators/create-delete-endpoint.d.ts.map +1 -0
- package/dist/endpoint-generators/create-delete-endpoint.js +24 -0
- package/dist/endpoint-generators/create-delete-endpoint.js.map +1 -0
- package/dist/endpoint-generators/create-delete-endpoint.spec.d.ts +2 -0
- package/dist/endpoint-generators/create-delete-endpoint.spec.d.ts.map +1 -0
- package/dist/endpoint-generators/create-delete-endpoint.spec.js +33 -0
- package/dist/endpoint-generators/create-delete-endpoint.spec.js.map +1 -0
- package/dist/endpoint-generators/create-get-collection-endpoint.d.ts +17 -0
- package/dist/endpoint-generators/create-get-collection-endpoint.d.ts.map +1 -0
- package/dist/endpoint-generators/create-get-collection-endpoint.js +26 -0
- package/dist/endpoint-generators/create-get-collection-endpoint.js.map +1 -0
- package/dist/endpoint-generators/create-get-collection-endpoint.spec.d.ts +2 -0
- package/dist/endpoint-generators/create-get-collection-endpoint.spec.d.ts.map +1 -0
- package/dist/endpoint-generators/create-get-collection-endpoint.spec.js +143 -0
- package/dist/endpoint-generators/create-get-collection-endpoint.spec.js.map +1 -0
- package/dist/endpoint-generators/create-get-entity-endpoint.d.ts +17 -0
- package/dist/endpoint-generators/create-get-entity-endpoint.d.ts.map +1 -0
- package/dist/endpoint-generators/create-get-entity-endpoint.js +29 -0
- package/dist/endpoint-generators/create-get-entity-endpoint.js.map +1 -0
- package/dist/endpoint-generators/create-get-entity-endpoint.spec.d.ts +2 -0
- package/dist/endpoint-generators/create-get-entity-endpoint.spec.d.ts.map +1 -0
- package/dist/endpoint-generators/create-get-entity-endpoint.spec.js +74 -0
- package/dist/endpoint-generators/create-get-entity-endpoint.spec.js.map +1 -0
- package/dist/endpoint-generators/create-patch-endpoint.d.ts +18 -0
- package/dist/endpoint-generators/create-patch-endpoint.d.ts.map +1 -0
- package/dist/endpoint-generators/create-patch-endpoint.js +26 -0
- package/dist/endpoint-generators/create-patch-endpoint.js.map +1 -0
- package/dist/endpoint-generators/create-patch-endpoint.spec.d.ts +2 -0
- package/dist/endpoint-generators/create-patch-endpoint.spec.d.ts.map +1 -0
- package/dist/endpoint-generators/create-patch-endpoint.spec.js +36 -0
- package/dist/endpoint-generators/create-patch-endpoint.spec.js.map +1 -0
- package/dist/endpoint-generators/create-post-endpoint.d.ts +18 -0
- package/dist/endpoint-generators/create-post-endpoint.d.ts.map +1 -0
- package/dist/endpoint-generators/create-post-endpoint.js +29 -0
- package/dist/endpoint-generators/create-post-endpoint.js.map +1 -0
- package/dist/endpoint-generators/create-post-endpoint.spec.d.ts +2 -0
- package/dist/endpoint-generators/create-post-endpoint.spec.d.ts.map +1 -0
- package/dist/endpoint-generators/create-post-endpoint.spec.js +34 -0
- package/dist/endpoint-generators/create-post-endpoint.spec.js.map +1 -0
- package/dist/endpoint-generators/index.d.ts +6 -0
- package/dist/endpoint-generators/index.d.ts.map +1 -0
- package/dist/endpoint-generators/index.js +9 -0
- package/dist/endpoint-generators/index.js.map +1 -0
- package/dist/endpoint-generators/utils.d.ts +9 -0
- package/dist/endpoint-generators/utils.d.ts.map +1 -0
- package/dist/endpoint-generators/utils.js +27 -0
- package/dist/endpoint-generators/utils.js.map +1 -0
- package/dist/http-authentication-settings.d.ts +17 -0
- package/dist/http-authentication-settings.d.ts.map +1 -0
- package/dist/http-authentication-settings.js +26 -0
- package/dist/http-authentication-settings.js.map +1 -0
- package/dist/http-user-context.d.ts +54 -0
- package/dist/http-user-context.d.ts.map +1 -0
- package/dist/http-user-context.js +153 -0
- package/dist/http-user-context.js.map +1 -0
- package/dist/http-user-context.spec.d.ts +4 -0
- package/dist/http-user-context.spec.d.ts.map +1 -0
- package/dist/http-user-context.spec.js +267 -0
- package/dist/http-user-context.spec.js.map +1 -0
- package/dist/incoming-message-extensions.d.ts +8 -0
- package/dist/incoming-message-extensions.d.ts.map +1 -0
- package/dist/incoming-message-extensions.js +14 -0
- package/dist/incoming-message-extensions.js.map +1 -0
- package/dist/incoming-message-extensions.spec.d.ts +2 -0
- package/dist/incoming-message-extensions.spec.d.ts.map +1 -0
- package/dist/incoming-message-extensions.spec.js +39 -0
- package/dist/incoming-message-extensions.spec.js.map +1 -0
- package/dist/index.d.ts +17 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +20 -0
- package/dist/index.js.map +1 -0
- package/dist/injector-extensions.d.ts +21 -0
- package/dist/injector-extensions.d.ts.map +1 -0
- package/dist/injector-extensions.js +14 -0
- package/dist/injector-extensions.js.map +1 -0
- package/dist/injector-extensions.spec.d.ts +2 -0
- package/dist/injector-extensions.spec.d.ts.map +1 -0
- package/dist/injector-extensions.spec.js +19 -0
- package/dist/injector-extensions.spec.js.map +1 -0
- package/dist/models/cors-options.d.ts +22 -0
- package/dist/models/cors-options.d.ts.map +1 -0
- package/dist/models/cors-options.js +3 -0
- package/dist/models/cors-options.js.map +1 -0
- package/dist/models/default-session.d.ts +14 -0
- package/dist/models/default-session.d.ts.map +1 -0
- package/dist/models/default-session.js +10 -0
- package/dist/models/default-session.js.map +1 -0
- package/dist/request-action-implementation.d.ts +54 -0
- package/dist/request-action-implementation.d.ts.map +1 -0
- package/dist/request-action-implementation.js +42 -0
- package/dist/request-action-implementation.js.map +1 -0
- package/dist/rest-service.integration.spec.d.ts +2 -0
- package/dist/rest-service.integration.spec.d.ts.map +1 -0
- package/dist/rest-service.integration.spec.js +129 -0
- package/dist/rest-service.integration.spec.js.map +1 -0
- package/dist/rest.integration.test.d.ts +58 -0
- package/dist/rest.integration.test.d.ts.map +1 -0
- package/dist/rest.integration.test.js +94 -0
- package/dist/rest.integration.test.js.map +1 -0
- package/dist/schema-validator/index.d.ts +3 -0
- package/dist/schema-validator/index.d.ts.map +1 -0
- package/dist/schema-validator/index.js +6 -0
- package/dist/schema-validator/index.js.map +1 -0
- package/dist/schema-validator/schema-validation-error.d.ts +10 -0
- package/dist/schema-validator/schema-validation-error.d.ts.map +1 -0
- package/dist/schema-validator/schema-validation-error.js +15 -0
- package/dist/schema-validator/schema-validation-error.js.map +1 -0
- package/dist/schema-validator/schema-validator.d.ts +20 -0
- package/dist/schema-validator/schema-validator.d.ts.map +1 -0
- package/dist/schema-validator/schema-validator.js +36 -0
- package/dist/schema-validator/schema-validator.js.map +1 -0
- package/dist/schema-validator/schema-validator.test.d.ts +2 -0
- package/dist/schema-validator/schema-validator.test.d.ts.map +1 -0
- package/dist/schema-validator/schema-validator.test.js +62 -0
- package/dist/schema-validator/schema-validator.test.js.map +1 -0
- package/dist/schema-validator/validate-examples.d.ts +37 -0
- package/dist/schema-validator/validate-examples.d.ts.map +1 -0
- package/dist/schema-validator/validate-examples.js +29 -0
- package/dist/schema-validator/validate-examples.js.map +1 -0
- package/dist/server-manager.d.ts +30 -0
- package/dist/server-manager.d.ts.map +1 -0
- package/dist/server-manager.js +71 -0
- package/dist/server-manager.js.map +1 -0
- package/dist/server-response-extensions.d.ts +21 -0
- package/dist/server-response-extensions.d.ts.map +1 -0
- package/dist/server-response-extensions.js +15 -0
- package/dist/server-response-extensions.js.map +1 -0
- package/dist/server-response-extensions.spec.d.ts +2 -0
- package/dist/server-response-extensions.spec.d.ts.map +1 -0
- package/dist/server-response-extensions.spec.js +49 -0
- package/dist/server-response-extensions.spec.js.map +1 -0
- package/dist/utils.d.ts +24 -0
- package/dist/utils.d.ts.map +1 -0
- package/dist/utils.js +66 -0
- package/dist/utils.js.map +1 -0
- package/dist/validate.d.ts +18 -0
- package/dist/validate.d.ts.map +1 -0
- package/dist/validate.integration.schema.d.ts +69 -0
- package/dist/validate.integration.schema.d.ts.map +1 -0
- package/dist/validate.integration.schema.js +3 -0
- package/dist/validate.integration.schema.js.map +1 -0
- package/dist/validate.integration.spec.d.ts +13 -0
- package/dist/validate.integration.spec.d.ts.map +1 -0
- package/dist/validate.integration.spec.js +223 -0
- package/dist/validate.integration.spec.js.map +1 -0
- package/dist/validate.integration.spec.schema.json +749 -0
- package/dist/validate.js +49 -0
- package/dist/validate.js.map +1 -0
- package/package.json +56 -0
- package/src/actions/error-action.spec.ts +54 -0
- package/src/actions/error-action.ts +34 -0
- package/src/actions/get-current-user.spec.ts +23 -0
- package/src/actions/get-current-user.ts +15 -0
- package/src/actions/index.ts +6 -0
- package/src/actions/is-authenticated.spec.ts +18 -0
- package/src/actions/is-authenticated.ts +13 -0
- package/src/actions/login-action.spec.ts +41 -0
- package/src/actions/login.ts +26 -0
- package/src/actions/logout-action.spec.ts +27 -0
- package/src/actions/logout.ts +16 -0
- package/src/actions/not-found-action.spec.ts +17 -0
- package/src/actions/not-found-action.ts +13 -0
- package/src/add-cors-header.spec.ts +133 -0
- package/src/api-manager.ts +222 -0
- package/src/authenticate.spec.ts +78 -0
- package/src/authenticate.ts +22 -0
- package/src/authorize.spec.ts +69 -0
- package/src/authorize.ts +19 -0
- package/src/endpoint-generators/create-delete-endpoint.spec.ts +34 -0
- package/src/endpoint-generators/create-delete-endpoint.ts +25 -0
- package/src/endpoint-generators/create-get-collection-endpoint.spec.ts +164 -0
- package/src/endpoint-generators/create-get-collection-endpoint.ts +28 -0
- package/src/endpoint-generators/create-get-entity-endpoint.spec.ts +75 -0
- package/src/endpoint-generators/create-get-entity-endpoint.ts +29 -0
- package/src/endpoint-generators/create-patch-endpoint.spec.ts +36 -0
- package/src/endpoint-generators/create-patch-endpoint.ts +27 -0
- package/src/endpoint-generators/create-post-endpoint.spec.ts +32 -0
- package/src/endpoint-generators/create-post-endpoint.ts +30 -0
- package/src/endpoint-generators/index.ts +5 -0
- package/src/endpoint-generators/utils.ts +34 -0
- package/src/http-authentication-settings.ts +23 -0
- package/src/http-user-context.spec.ts +299 -0
- package/src/http-user-context.ts +160 -0
- package/src/incoming-message-extensions.spec.ts +41 -0
- package/src/incoming-message-extensions.ts +19 -0
- package/src/index.ts +16 -0
- package/src/injector-extensions.spec.ts +19 -0
- package/src/injector-extensions.ts +35 -0
- package/src/models/cors-options.ts +21 -0
- package/src/models/default-session.ts +14 -0
- package/src/request-action-implementation.ts +70 -0
- package/src/rest-service.integration.spec.ts +166 -0
- package/src/rest.integration.test.ts +112 -0
- package/src/schema-validator/index.ts +2 -0
- package/src/schema-validator/schema-validation-error.ts +11 -0
- package/src/schema-validator/schema-validator.test.ts +72 -0
- package/src/schema-validator/schema-validator.ts +31 -0
- package/src/schema-validator/validate-examples.ts +38 -0
- package/src/server-manager.ts +88 -0
- package/src/server-response-extensions.spec.ts +53 -0
- package/src/server-response-extensions.ts +30 -0
- package/src/utils.ts +65 -0
- package/src/validate.integration.schema.ts +50 -0
- package/src/validate.integration.spec.schema.json +779 -0
- package/src/validate.integration.spec.ts +218 -0
- package/src/validate.ts +60 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"validate.integration.spec.js","sourceRoot":"","sources":["../src/validate.integration.spec.ts"],"names":[],"mappings":";;;;AAAA,8CAA4C;AAC5C,gEAAyD;AACzD,4CAA6C;AAC7C,4CAA8C;AAC9C,mFAA4D;AAC5D,yCAAqC;AACrC,iCAA8B;AAE9B,iIAA4D;AAG5D,6MAA6M;AAEtM,MAAM,iBAAiB,GAAG,KAAK,IAAI,EAAE;IAC1C,MAAM,QAAQ,GAAG,IAAI,iBAAQ,EAAE,CAAA;IAC/B,MAAM,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE,GAAG,IAAI,CAAC,GAAG,KAAK,CAAA;IACrD,QAAQ,CAAC,cAAc,CAAgB;QACrC,GAAG,EAAE;YACH,GAAG,EAAE;gBACH,iBAAiB,EAAE,IAAA,mBAAQ,EAAC;oBAC1B,MAAM,EAAN,+CAAM;oBACN,UAAU,EAAE,eAAe;iBAC5B,CAAC,CAAC,KAAK,EAAE,EAAE,QAAQ,EAAE,EAAE,EAAE,CAAC,IAAA,0CAAU,EAAC,EAAE,GAAG,QAAQ,EAAE,EAAE,CAAC,CAAC;gBACzD,mBAAmB,EAAE,IAAA,mBAAQ,EAAC;oBAC5B,MAAM,EAAN,+CAAM;oBACN,UAAU,EAAE,aAAa;iBAC1B,CAAC,CAAC,KAAK,EAAE,EAAE,YAAY,EAAE,EAAE,EAAE,CAAC,IAAA,0CAAU,EAAC,EAAE,GAAG,YAAY,EAAE,EAAE,CAAC,CAAC;gBACjE,mBAAmB,EAAE,IAAA,mBAAQ,EAAC;oBAC5B,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I,EAAE;YACpC,MAAM,IAAA,kBAAU,EAAC,MAAM,IAAA,yBAAiB,GAAE,EAAE,KAAK,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE;gBAC/D,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC;oBAC1B,MAAM,EAAE,MAAM;oBACd,MAAM,EAAE,gBAAgB;oBACxB,IAAI,EAAE;wBACJ,GAAG,EAAE,KAAK;wBACV,GAAG,EAAE,EAAE;wBACP,GAAG,EAAE,IAAI;qBACV;iBACF,CAAC,CAAA;gBAEF,MAAM,CAAC,MAAM,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAA;gBAC5C,MAAM,YAAY,GAAG,MAAM,CAAC,OAAO,EAAE,CAAA;gBACrC,MAAM,CAAC,YAAY,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAA;gBACpC,MAAM,CAAC,YAAY,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;gBACjC,MAAM,CAAC,YAAY,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;YACrC,CAAC,CAAC,CAAA;QACJ,CAAC,CAAC,CAAA;IACJ,CAAC,CAAC,CAAA;AACJ,CAAC,CAAC,CAAA"}
|
|
@@ -0,0 +1,749 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"definitions": {
|
|
4
|
+
"DeleteEndpoint<Mock,\"id\">": {
|
|
5
|
+
"additionalProperties": false,
|
|
6
|
+
"description": "Endpoint model for deleting entities",
|
|
7
|
+
"properties": {
|
|
8
|
+
"result": {
|
|
9
|
+
"additionalProperties": false,
|
|
10
|
+
"type": "object"
|
|
11
|
+
},
|
|
12
|
+
"url": {
|
|
13
|
+
"additionalProperties": false,
|
|
14
|
+
"properties": {
|
|
15
|
+
"id": {
|
|
16
|
+
"type": "string"
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
"required": [
|
|
20
|
+
"id"
|
|
21
|
+
],
|
|
22
|
+
"type": "object"
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"required": [
|
|
26
|
+
"url",
|
|
27
|
+
"result"
|
|
28
|
+
],
|
|
29
|
+
"type": "object"
|
|
30
|
+
},
|
|
31
|
+
"FilterType<Mock>": {
|
|
32
|
+
"additionalProperties": false,
|
|
33
|
+
"properties": {
|
|
34
|
+
"$and": {
|
|
35
|
+
"items": {
|
|
36
|
+
"$ref": "#/definitions/FilterType%3CMock%3E"
|
|
37
|
+
},
|
|
38
|
+
"type": "array"
|
|
39
|
+
},
|
|
40
|
+
"$nor": {
|
|
41
|
+
"items": {
|
|
42
|
+
"$ref": "#/definitions/FilterType%3CMock%3E"
|
|
43
|
+
},
|
|
44
|
+
"type": "array"
|
|
45
|
+
},
|
|
46
|
+
"$not": {
|
|
47
|
+
"items": {
|
|
48
|
+
"$ref": "#/definitions/FilterType%3CMock%3E"
|
|
49
|
+
},
|
|
50
|
+
"type": "array"
|
|
51
|
+
},
|
|
52
|
+
"$or": {
|
|
53
|
+
"items": {
|
|
54
|
+
"$ref": "#/definitions/FilterType%3CMock%3E"
|
|
55
|
+
},
|
|
56
|
+
"type": "array"
|
|
57
|
+
},
|
|
58
|
+
"id": {
|
|
59
|
+
"anyOf": [
|
|
60
|
+
{
|
|
61
|
+
"additionalProperties": false,
|
|
62
|
+
"properties": {
|
|
63
|
+
"$regex": {
|
|
64
|
+
"type": "string"
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
"type": "object"
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
"additionalProperties": false,
|
|
71
|
+
"properties": {
|
|
72
|
+
"$eq": {
|
|
73
|
+
"type": "string"
|
|
74
|
+
},
|
|
75
|
+
"$ne": {
|
|
76
|
+
"type": "string"
|
|
77
|
+
}
|
|
78
|
+
},
|
|
79
|
+
"type": "object"
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
"additionalProperties": false,
|
|
83
|
+
"properties": {
|
|
84
|
+
"$in": {
|
|
85
|
+
"items": {
|
|
86
|
+
"type": "string"
|
|
87
|
+
},
|
|
88
|
+
"type": "array"
|
|
89
|
+
},
|
|
90
|
+
"$nin": {
|
|
91
|
+
"items": {
|
|
92
|
+
"type": "string"
|
|
93
|
+
},
|
|
94
|
+
"type": "array"
|
|
95
|
+
}
|
|
96
|
+
},
|
|
97
|
+
"type": "object"
|
|
98
|
+
}
|
|
99
|
+
]
|
|
100
|
+
},
|
|
101
|
+
"value": {
|
|
102
|
+
"anyOf": [
|
|
103
|
+
{
|
|
104
|
+
"additionalProperties": false,
|
|
105
|
+
"properties": {
|
|
106
|
+
"$regex": {
|
|
107
|
+
"type": "string"
|
|
108
|
+
}
|
|
109
|
+
},
|
|
110
|
+
"type": "object"
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
"additionalProperties": false,
|
|
114
|
+
"properties": {
|
|
115
|
+
"$eq": {
|
|
116
|
+
"type": "string"
|
|
117
|
+
},
|
|
118
|
+
"$ne": {
|
|
119
|
+
"type": "string"
|
|
120
|
+
}
|
|
121
|
+
},
|
|
122
|
+
"type": "object"
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
"additionalProperties": false,
|
|
126
|
+
"properties": {
|
|
127
|
+
"$in": {
|
|
128
|
+
"items": {
|
|
129
|
+
"type": "string"
|
|
130
|
+
},
|
|
131
|
+
"type": "array"
|
|
132
|
+
},
|
|
133
|
+
"$nin": {
|
|
134
|
+
"items": {
|
|
135
|
+
"type": "string"
|
|
136
|
+
},
|
|
137
|
+
"type": "array"
|
|
138
|
+
}
|
|
139
|
+
},
|
|
140
|
+
"type": "object"
|
|
141
|
+
}
|
|
142
|
+
]
|
|
143
|
+
}
|
|
144
|
+
},
|
|
145
|
+
"type": "object"
|
|
146
|
+
},
|
|
147
|
+
"FindOptions<Mock,(\"id\"|\"value\")[]>": {
|
|
148
|
+
"additionalProperties": false,
|
|
149
|
+
"description": "Type for default filtering model",
|
|
150
|
+
"properties": {
|
|
151
|
+
"filter": {
|
|
152
|
+
"$ref": "#/definitions/FilterType%3CMock%3E",
|
|
153
|
+
"description": "The fields should match this filter"
|
|
154
|
+
},
|
|
155
|
+
"order": {
|
|
156
|
+
"additionalProperties": false,
|
|
157
|
+
"description": "Sets up an order by a field and a direction",
|
|
158
|
+
"properties": {
|
|
159
|
+
"id": {
|
|
160
|
+
"enum": [
|
|
161
|
+
"ASC",
|
|
162
|
+
"DESC"
|
|
163
|
+
],
|
|
164
|
+
"type": "string"
|
|
165
|
+
},
|
|
166
|
+
"value": {
|
|
167
|
+
"enum": [
|
|
168
|
+
"ASC",
|
|
169
|
+
"DESC"
|
|
170
|
+
],
|
|
171
|
+
"type": "string"
|
|
172
|
+
}
|
|
173
|
+
},
|
|
174
|
+
"type": "object"
|
|
175
|
+
},
|
|
176
|
+
"select": {
|
|
177
|
+
"description": "The result set will be limited to these fields",
|
|
178
|
+
"items": {
|
|
179
|
+
"enum": [
|
|
180
|
+
"id",
|
|
181
|
+
"value"
|
|
182
|
+
],
|
|
183
|
+
"type": "string"
|
|
184
|
+
},
|
|
185
|
+
"type": "array"
|
|
186
|
+
},
|
|
187
|
+
"skip": {
|
|
188
|
+
"description": "Skips the first N hit",
|
|
189
|
+
"type": "number"
|
|
190
|
+
},
|
|
191
|
+
"top": {
|
|
192
|
+
"description": "Limits the hits",
|
|
193
|
+
"type": "number"
|
|
194
|
+
}
|
|
195
|
+
},
|
|
196
|
+
"type": "object"
|
|
197
|
+
},
|
|
198
|
+
"GetCollectionEndpoint<Mock>": {
|
|
199
|
+
"additionalProperties": false,
|
|
200
|
+
"description": "Rest endpoint model for getting / querying collections",
|
|
201
|
+
"properties": {
|
|
202
|
+
"query": {
|
|
203
|
+
"additionalProperties": false,
|
|
204
|
+
"properties": {
|
|
205
|
+
"findOptions": {
|
|
206
|
+
"$ref": "#/definitions/FindOptions%3CMock%2C(%22id%22%7C%22value%22)%5B%5D%3E"
|
|
207
|
+
}
|
|
208
|
+
},
|
|
209
|
+
"type": "object"
|
|
210
|
+
},
|
|
211
|
+
"result": {
|
|
212
|
+
"$ref": "#/definitions/GetCollectionResult%3CMock%3E"
|
|
213
|
+
}
|
|
214
|
+
},
|
|
215
|
+
"required": [
|
|
216
|
+
"query",
|
|
217
|
+
"result"
|
|
218
|
+
],
|
|
219
|
+
"type": "object"
|
|
220
|
+
},
|
|
221
|
+
"GetCollectionResult<Mock>": {
|
|
222
|
+
"additionalProperties": false,
|
|
223
|
+
"description": "Response Model for GetCollection",
|
|
224
|
+
"properties": {
|
|
225
|
+
"count": {
|
|
226
|
+
"description": "The Total count of entities",
|
|
227
|
+
"type": "number"
|
|
228
|
+
},
|
|
229
|
+
"entries": {
|
|
230
|
+
"description": "List of the selected entities",
|
|
231
|
+
"items": {
|
|
232
|
+
"$ref": "#/definitions/Mock"
|
|
233
|
+
},
|
|
234
|
+
"type": "array"
|
|
235
|
+
}
|
|
236
|
+
},
|
|
237
|
+
"required": [
|
|
238
|
+
"count",
|
|
239
|
+
"entries"
|
|
240
|
+
],
|
|
241
|
+
"type": "object"
|
|
242
|
+
},
|
|
243
|
+
"GetEntityEndpoint<Mock,\"id\">": {
|
|
244
|
+
"additionalProperties": false,
|
|
245
|
+
"description": "Endpoint model for getting a single entity",
|
|
246
|
+
"properties": {
|
|
247
|
+
"query": {
|
|
248
|
+
"additionalProperties": false,
|
|
249
|
+
"properties": {
|
|
250
|
+
"select": {
|
|
251
|
+
"description": "The list of fields to select",
|
|
252
|
+
"items": {
|
|
253
|
+
"enum": [
|
|
254
|
+
"id",
|
|
255
|
+
"value"
|
|
256
|
+
],
|
|
257
|
+
"type": "string"
|
|
258
|
+
},
|
|
259
|
+
"type": "array"
|
|
260
|
+
}
|
|
261
|
+
},
|
|
262
|
+
"type": "object"
|
|
263
|
+
},
|
|
264
|
+
"result": {
|
|
265
|
+
"$ref": "#/definitions/Mock"
|
|
266
|
+
},
|
|
267
|
+
"url": {
|
|
268
|
+
"additionalProperties": false,
|
|
269
|
+
"properties": {
|
|
270
|
+
"id": {
|
|
271
|
+
"description": "The entity's unique identifier",
|
|
272
|
+
"type": "string"
|
|
273
|
+
}
|
|
274
|
+
},
|
|
275
|
+
"required": [
|
|
276
|
+
"id"
|
|
277
|
+
],
|
|
278
|
+
"type": "object"
|
|
279
|
+
}
|
|
280
|
+
},
|
|
281
|
+
"required": [
|
|
282
|
+
"query",
|
|
283
|
+
"url",
|
|
284
|
+
"result"
|
|
285
|
+
],
|
|
286
|
+
"type": "object"
|
|
287
|
+
},
|
|
288
|
+
"Mock": {
|
|
289
|
+
"additionalProperties": false,
|
|
290
|
+
"properties": {
|
|
291
|
+
"id": {
|
|
292
|
+
"type": "string"
|
|
293
|
+
},
|
|
294
|
+
"value": {
|
|
295
|
+
"type": "string"
|
|
296
|
+
}
|
|
297
|
+
},
|
|
298
|
+
"required": [
|
|
299
|
+
"id",
|
|
300
|
+
"value"
|
|
301
|
+
],
|
|
302
|
+
"type": "object"
|
|
303
|
+
},
|
|
304
|
+
"PatchEndpoint<Mock,\"id\">": {
|
|
305
|
+
"additionalProperties": false,
|
|
306
|
+
"description": "Endpoint model for updating entities",
|
|
307
|
+
"properties": {
|
|
308
|
+
"body": {
|
|
309
|
+
"additionalProperties": false,
|
|
310
|
+
"properties": {
|
|
311
|
+
"id": {
|
|
312
|
+
"type": "string"
|
|
313
|
+
},
|
|
314
|
+
"value": {
|
|
315
|
+
"type": "string"
|
|
316
|
+
}
|
|
317
|
+
},
|
|
318
|
+
"type": "object"
|
|
319
|
+
},
|
|
320
|
+
"result": {
|
|
321
|
+
"additionalProperties": false,
|
|
322
|
+
"type": "object"
|
|
323
|
+
},
|
|
324
|
+
"url": {
|
|
325
|
+
"additionalProperties": false,
|
|
326
|
+
"properties": {
|
|
327
|
+
"id": {
|
|
328
|
+
"type": "string"
|
|
329
|
+
}
|
|
330
|
+
},
|
|
331
|
+
"required": [
|
|
332
|
+
"id"
|
|
333
|
+
],
|
|
334
|
+
"type": "object"
|
|
335
|
+
}
|
|
336
|
+
},
|
|
337
|
+
"required": [
|
|
338
|
+
"body",
|
|
339
|
+
"url",
|
|
340
|
+
"result"
|
|
341
|
+
],
|
|
342
|
+
"type": "object"
|
|
343
|
+
},
|
|
344
|
+
"PostEndpoint<Mock,\"id\">": {
|
|
345
|
+
"additionalProperties": false,
|
|
346
|
+
"description": "Endpoint model for creating new entities",
|
|
347
|
+
"properties": {
|
|
348
|
+
"body": {
|
|
349
|
+
"$ref": "#/definitions/WithOptionalId%3CMock%2C%22id%22%3E"
|
|
350
|
+
},
|
|
351
|
+
"result": {
|
|
352
|
+
"$ref": "#/definitions/Mock"
|
|
353
|
+
}
|
|
354
|
+
},
|
|
355
|
+
"required": [
|
|
356
|
+
"body",
|
|
357
|
+
"result"
|
|
358
|
+
],
|
|
359
|
+
"type": "object"
|
|
360
|
+
},
|
|
361
|
+
"RestApi": {
|
|
362
|
+
"additionalProperties": false,
|
|
363
|
+
"properties": {
|
|
364
|
+
"DELETE": {
|
|
365
|
+
"additionalProperties": {
|
|
366
|
+
"additionalProperties": false,
|
|
367
|
+
"properties": {
|
|
368
|
+
"body": {},
|
|
369
|
+
"headers": {},
|
|
370
|
+
"query": {},
|
|
371
|
+
"result": {},
|
|
372
|
+
"url": {}
|
|
373
|
+
},
|
|
374
|
+
"required": [
|
|
375
|
+
"result"
|
|
376
|
+
],
|
|
377
|
+
"type": "object"
|
|
378
|
+
},
|
|
379
|
+
"type": "object"
|
|
380
|
+
},
|
|
381
|
+
"GET": {
|
|
382
|
+
"additionalProperties": {
|
|
383
|
+
"additionalProperties": false,
|
|
384
|
+
"properties": {
|
|
385
|
+
"body": {},
|
|
386
|
+
"headers": {},
|
|
387
|
+
"query": {},
|
|
388
|
+
"result": {},
|
|
389
|
+
"url": {}
|
|
390
|
+
},
|
|
391
|
+
"required": [
|
|
392
|
+
"result"
|
|
393
|
+
],
|
|
394
|
+
"type": "object"
|
|
395
|
+
},
|
|
396
|
+
"type": "object"
|
|
397
|
+
},
|
|
398
|
+
"PATCH": {
|
|
399
|
+
"additionalProperties": {
|
|
400
|
+
"additionalProperties": false,
|
|
401
|
+
"properties": {
|
|
402
|
+
"body": {},
|
|
403
|
+
"headers": {},
|
|
404
|
+
"query": {},
|
|
405
|
+
"result": {},
|
|
406
|
+
"url": {}
|
|
407
|
+
},
|
|
408
|
+
"required": [
|
|
409
|
+
"result"
|
|
410
|
+
],
|
|
411
|
+
"type": "object"
|
|
412
|
+
},
|
|
413
|
+
"type": "object"
|
|
414
|
+
},
|
|
415
|
+
"POST": {
|
|
416
|
+
"additionalProperties": {
|
|
417
|
+
"additionalProperties": false,
|
|
418
|
+
"properties": {
|
|
419
|
+
"body": {},
|
|
420
|
+
"headers": {},
|
|
421
|
+
"query": {},
|
|
422
|
+
"result": {},
|
|
423
|
+
"url": {}
|
|
424
|
+
},
|
|
425
|
+
"required": [
|
|
426
|
+
"result"
|
|
427
|
+
],
|
|
428
|
+
"type": "object"
|
|
429
|
+
},
|
|
430
|
+
"type": "object"
|
|
431
|
+
},
|
|
432
|
+
"PUT": {
|
|
433
|
+
"additionalProperties": {
|
|
434
|
+
"additionalProperties": false,
|
|
435
|
+
"properties": {
|
|
436
|
+
"body": {},
|
|
437
|
+
"headers": {},
|
|
438
|
+
"query": {},
|
|
439
|
+
"result": {},
|
|
440
|
+
"url": {}
|
|
441
|
+
},
|
|
442
|
+
"required": [
|
|
443
|
+
"result"
|
|
444
|
+
],
|
|
445
|
+
"type": "object"
|
|
446
|
+
},
|
|
447
|
+
"type": "object"
|
|
448
|
+
}
|
|
449
|
+
},
|
|
450
|
+
"type": "object"
|
|
451
|
+
},
|
|
452
|
+
"ValidateBody": {
|
|
453
|
+
"additionalProperties": false,
|
|
454
|
+
"properties": {
|
|
455
|
+
"body": {
|
|
456
|
+
"additionalProperties": false,
|
|
457
|
+
"properties": {
|
|
458
|
+
"bar": {
|
|
459
|
+
"type": "number"
|
|
460
|
+
},
|
|
461
|
+
"baz": {
|
|
462
|
+
"type": "boolean"
|
|
463
|
+
},
|
|
464
|
+
"foo": {
|
|
465
|
+
"type": "string"
|
|
466
|
+
}
|
|
467
|
+
},
|
|
468
|
+
"required": [
|
|
469
|
+
"foo",
|
|
470
|
+
"bar",
|
|
471
|
+
"baz"
|
|
472
|
+
],
|
|
473
|
+
"type": "object"
|
|
474
|
+
},
|
|
475
|
+
"result": {
|
|
476
|
+
"additionalProperties": false,
|
|
477
|
+
"properties": {
|
|
478
|
+
"bar": {
|
|
479
|
+
"type": "number"
|
|
480
|
+
},
|
|
481
|
+
"baz": {
|
|
482
|
+
"type": "boolean"
|
|
483
|
+
},
|
|
484
|
+
"foo": {
|
|
485
|
+
"type": "string"
|
|
486
|
+
}
|
|
487
|
+
},
|
|
488
|
+
"required": [
|
|
489
|
+
"foo",
|
|
490
|
+
"bar",
|
|
491
|
+
"baz"
|
|
492
|
+
],
|
|
493
|
+
"type": "object"
|
|
494
|
+
}
|
|
495
|
+
},
|
|
496
|
+
"required": [
|
|
497
|
+
"body",
|
|
498
|
+
"result"
|
|
499
|
+
],
|
|
500
|
+
"type": "object"
|
|
501
|
+
},
|
|
502
|
+
"ValidateHeaders": {
|
|
503
|
+
"additionalProperties": false,
|
|
504
|
+
"properties": {
|
|
505
|
+
"headers": {
|
|
506
|
+
"additionalProperties": false,
|
|
507
|
+
"properties": {
|
|
508
|
+
"bar": {
|
|
509
|
+
"type": "number"
|
|
510
|
+
},
|
|
511
|
+
"baz": {
|
|
512
|
+
"type": "boolean"
|
|
513
|
+
},
|
|
514
|
+
"foo": {
|
|
515
|
+
"type": "string"
|
|
516
|
+
}
|
|
517
|
+
},
|
|
518
|
+
"required": [
|
|
519
|
+
"foo",
|
|
520
|
+
"bar",
|
|
521
|
+
"baz"
|
|
522
|
+
],
|
|
523
|
+
"type": "object"
|
|
524
|
+
},
|
|
525
|
+
"result": {
|
|
526
|
+
"additionalProperties": false,
|
|
527
|
+
"properties": {
|
|
528
|
+
"bar": {
|
|
529
|
+
"type": "number"
|
|
530
|
+
},
|
|
531
|
+
"baz": {
|
|
532
|
+
"type": "boolean"
|
|
533
|
+
},
|
|
534
|
+
"foo": {
|
|
535
|
+
"type": "string"
|
|
536
|
+
}
|
|
537
|
+
},
|
|
538
|
+
"required": [
|
|
539
|
+
"foo",
|
|
540
|
+
"bar",
|
|
541
|
+
"baz"
|
|
542
|
+
],
|
|
543
|
+
"type": "object"
|
|
544
|
+
}
|
|
545
|
+
},
|
|
546
|
+
"required": [
|
|
547
|
+
"headers",
|
|
548
|
+
"result"
|
|
549
|
+
],
|
|
550
|
+
"type": "object"
|
|
551
|
+
},
|
|
552
|
+
"ValidateQuery": {
|
|
553
|
+
"additionalProperties": false,
|
|
554
|
+
"properties": {
|
|
555
|
+
"query": {
|
|
556
|
+
"additionalProperties": false,
|
|
557
|
+
"properties": {
|
|
558
|
+
"bar": {
|
|
559
|
+
"type": "number"
|
|
560
|
+
},
|
|
561
|
+
"baz": {
|
|
562
|
+
"type": "boolean"
|
|
563
|
+
},
|
|
564
|
+
"foo": {
|
|
565
|
+
"type": "string"
|
|
566
|
+
}
|
|
567
|
+
},
|
|
568
|
+
"required": [
|
|
569
|
+
"foo",
|
|
570
|
+
"bar",
|
|
571
|
+
"baz"
|
|
572
|
+
],
|
|
573
|
+
"type": "object"
|
|
574
|
+
},
|
|
575
|
+
"result": {
|
|
576
|
+
"additionalProperties": false,
|
|
577
|
+
"properties": {
|
|
578
|
+
"bar": {
|
|
579
|
+
"type": "number"
|
|
580
|
+
},
|
|
581
|
+
"baz": {
|
|
582
|
+
"type": "boolean"
|
|
583
|
+
},
|
|
584
|
+
"foo": {
|
|
585
|
+
"type": "string"
|
|
586
|
+
}
|
|
587
|
+
},
|
|
588
|
+
"required": [
|
|
589
|
+
"foo",
|
|
590
|
+
"bar",
|
|
591
|
+
"baz"
|
|
592
|
+
],
|
|
593
|
+
"type": "object"
|
|
594
|
+
}
|
|
595
|
+
},
|
|
596
|
+
"required": [
|
|
597
|
+
"query",
|
|
598
|
+
"result"
|
|
599
|
+
],
|
|
600
|
+
"type": "object"
|
|
601
|
+
},
|
|
602
|
+
"ValidateUrl": {
|
|
603
|
+
"additionalProperties": false,
|
|
604
|
+
"properties": {
|
|
605
|
+
"result": {
|
|
606
|
+
"additionalProperties": false,
|
|
607
|
+
"properties": {
|
|
608
|
+
"id": {
|
|
609
|
+
"type": "number"
|
|
610
|
+
}
|
|
611
|
+
},
|
|
612
|
+
"required": [
|
|
613
|
+
"id"
|
|
614
|
+
],
|
|
615
|
+
"type": "object"
|
|
616
|
+
},
|
|
617
|
+
"url": {
|
|
618
|
+
"additionalProperties": false,
|
|
619
|
+
"properties": {
|
|
620
|
+
"id": {
|
|
621
|
+
"type": "number"
|
|
622
|
+
}
|
|
623
|
+
},
|
|
624
|
+
"required": [
|
|
625
|
+
"id"
|
|
626
|
+
],
|
|
627
|
+
"type": "object"
|
|
628
|
+
}
|
|
629
|
+
},
|
|
630
|
+
"required": [
|
|
631
|
+
"url",
|
|
632
|
+
"result"
|
|
633
|
+
],
|
|
634
|
+
"type": "object"
|
|
635
|
+
},
|
|
636
|
+
"ValidationApi": {
|
|
637
|
+
"additionalProperties": false,
|
|
638
|
+
"properties": {
|
|
639
|
+
"DELETE": {
|
|
640
|
+
"additionalProperties": false,
|
|
641
|
+
"properties": {
|
|
642
|
+
"/mock/:id": {
|
|
643
|
+
"$ref": "#/definitions/DeleteEndpoint%3CMock%2C%22id%22%3E"
|
|
644
|
+
}
|
|
645
|
+
},
|
|
646
|
+
"required": [
|
|
647
|
+
"/mock/:id"
|
|
648
|
+
],
|
|
649
|
+
"type": "object"
|
|
650
|
+
},
|
|
651
|
+
"GET": {
|
|
652
|
+
"additionalProperties": false,
|
|
653
|
+
"properties": {
|
|
654
|
+
"/mock": {
|
|
655
|
+
"$ref": "#/definitions/GetCollectionEndpoint%3CMock%3E"
|
|
656
|
+
},
|
|
657
|
+
"/mock/:id": {
|
|
658
|
+
"$ref": "#/definitions/GetEntityEndpoint%3CMock%2C%22id%22%3E"
|
|
659
|
+
},
|
|
660
|
+
"/validate-headers": {
|
|
661
|
+
"$ref": "#/definitions/ValidateHeaders"
|
|
662
|
+
},
|
|
663
|
+
"/validate-query": {
|
|
664
|
+
"$ref": "#/definitions/ValidateQuery"
|
|
665
|
+
},
|
|
666
|
+
"/validate-url/:id": {
|
|
667
|
+
"$ref": "#/definitions/ValidateUrl"
|
|
668
|
+
}
|
|
669
|
+
},
|
|
670
|
+
"required": [
|
|
671
|
+
"/validate-query",
|
|
672
|
+
"/validate-url/:id",
|
|
673
|
+
"/validate-headers",
|
|
674
|
+
"/mock",
|
|
675
|
+
"/mock/:id"
|
|
676
|
+
],
|
|
677
|
+
"type": "object"
|
|
678
|
+
},
|
|
679
|
+
"PATCH": {
|
|
680
|
+
"additionalProperties": false,
|
|
681
|
+
"properties": {
|
|
682
|
+
"/mock/:id": {
|
|
683
|
+
"$ref": "#/definitions/PatchEndpoint%3CMock%2C%22id%22%3E"
|
|
684
|
+
}
|
|
685
|
+
},
|
|
686
|
+
"required": [
|
|
687
|
+
"/mock/:id"
|
|
688
|
+
],
|
|
689
|
+
"type": "object"
|
|
690
|
+
},
|
|
691
|
+
"POST": {
|
|
692
|
+
"additionalProperties": false,
|
|
693
|
+
"properties": {
|
|
694
|
+
"/mock": {
|
|
695
|
+
"$ref": "#/definitions/PostEndpoint%3CMock%2C%22id%22%3E"
|
|
696
|
+
},
|
|
697
|
+
"/validate-body": {
|
|
698
|
+
"$ref": "#/definitions/ValidateBody"
|
|
699
|
+
}
|
|
700
|
+
},
|
|
701
|
+
"required": [
|
|
702
|
+
"/validate-body",
|
|
703
|
+
"/mock"
|
|
704
|
+
],
|
|
705
|
+
"type": "object"
|
|
706
|
+
},
|
|
707
|
+
"PUT": {
|
|
708
|
+
"additionalProperties": {
|
|
709
|
+
"additionalProperties": false,
|
|
710
|
+
"properties": {
|
|
711
|
+
"body": {},
|
|
712
|
+
"headers": {},
|
|
713
|
+
"query": {},
|
|
714
|
+
"result": {},
|
|
715
|
+
"url": {}
|
|
716
|
+
},
|
|
717
|
+
"required": [
|
|
718
|
+
"result"
|
|
719
|
+
],
|
|
720
|
+
"type": "object"
|
|
721
|
+
},
|
|
722
|
+
"type": "object"
|
|
723
|
+
}
|
|
724
|
+
},
|
|
725
|
+
"required": [
|
|
726
|
+
"GET",
|
|
727
|
+
"POST",
|
|
728
|
+
"PATCH",
|
|
729
|
+
"DELETE"
|
|
730
|
+
],
|
|
731
|
+
"type": "object"
|
|
732
|
+
},
|
|
733
|
+
"WithOptionalId<Mock,\"id\">": {
|
|
734
|
+
"additionalProperties": false,
|
|
735
|
+
"properties": {
|
|
736
|
+
"id": {
|
|
737
|
+
"type": "string"
|
|
738
|
+
},
|
|
739
|
+
"value": {
|
|
740
|
+
"type": "string"
|
|
741
|
+
}
|
|
742
|
+
},
|
|
743
|
+
"required": [
|
|
744
|
+
"value"
|
|
745
|
+
],
|
|
746
|
+
"type": "object"
|
|
747
|
+
}
|
|
748
|
+
}
|
|
749
|
+
}
|