git.iko.soy/typeable/mock-server-client
on master help sign in
typeable/mock-server-client/codegen/mock-server-openapi.yaml
1008 lines 31 kB history raw
1openapi: 3.0.0
2servers:
3 - url: 'http://localhost:1080/'
4 - url: 'https://localhost:1080/'
5info:
6 title: MockServer API
7 version: 5.15.x
8 description: >-
9 MockServer enables easy mocking of any system you integrate with via HTTP or HTTPS with clients written in Java, JavaScript and Ruby and a simple REST API (as shown below).
12 MockServer Proxy is a proxy that introspects all proxied traffic including encrypted SSL traffic and supports Port Forwarding, Web Proxying (i.e. HTTP proxy), HTTPS Tunneling Proxying (using HTTP CONNECT) and SOCKS Proxying (i.e. dynamic port forwarding).
15 Both MockServer and the MockServer Proxy record all received requests so that it is possible to verify exactly what requests have been sent by the system under test.
16 license:
17 url: 'https://github.com/mock-server/mockserver/blob/master/LICENSE.md'
18 name: Apache 2.0
19tags:
20 - name: expectation
21 description: Create or update expectations - updates if the id matches an existing expectations (only supported by MockServer)
22 - name: verify
23 description: Verify requests (both MockServer & MockServer Proxy)
24 - name: control
25 description: Manage state or process (both MockServer & MockServer Proxy)
27paths:
28 /mockserver/expectation:
29 put:
30 tags:
31 - expectation
32 summary: create expectation
33 responses:
34 '201':
35 description: expectations created
36 content:
37 application/json:
38 schema:
39 title: list of upserted expectations
40 type: array
41 additionalProperties: false
42 items:
43 $ref: "#/components/schemas/Expectation"
44 '400':
45 description: incorrect request format
46 '406':
47 description: invalid expectation
48 requestBody:
49 content:
50 application/json:
51 schema:
52 $ref: "#/components/schemas/Expectations"
53 description: expectation(s) to create
54 required: true
55 /mockserver/openapi:
56 put:
57 tags:
58 - expectation
59 summary: create expectations from OpenAPI or Swagger
60 responses:
61 '201':
62 description: expectations created
63 content:
64 application/json:
65 schema:
66 title: list of upserted expectations
67 type: array
68 additionalProperties: false
69 items:
70 $ref: "#/components/schemas/Expectation"
71 '400':
72 description: incorrect request format
73 '406':
74 description: invalid expectation
75 requestBody:
76 content:
77 application/json:
78 schema:
79 $ref: "#/components/schemas/OpenAPIExpectations"
80 description: expectation(s) to create
81 required: true
82 /mockserver/clear:
83 put:
84 tags:
85 - control
86 summary: clears expectations and recorded requests that match the request matcher
87 responses:
88 '200':
89 description: expectations and recorded requests cleared
90 '400':
91 description: incorrect request format
92 requestBody:
93 content:
94 application/json:
95 schema:
96 oneOf:
97 - $ref: "#/components/schemas/RequestDefinition"
98 - $ref: "#/components/schemas/ExpectationId"
99 description: request used to match expectations and record requests to clear
100 /mockserver/reset:
101 put:
102 tags:
103 - control
104 summary: clears all expectations and recorded requests
105 responses:
106 '200':
107 description: expectations and recorded requests cleared
108 /mockserver/retrieve:
109 put:
110 tags:
111 - control
112 summary: retrieve recorded requests, active expectations, recorded expectations or log messages
113 parameters:
114 - in: query
115 name: format
116 schema:
117 type: string
118 enum: [ "java", "json", "log_entries" ]
119 description: changes response format, default if not specified is "json", supported values are "java", "json", "log_entries"
120 - in: query
121 name: type
122 schema:
123 type: string
124 enum: [ "logs", "requests", "request_responses", "recorded_expectations", "active_expectations" ]
125 description: specifies the type of object that is retrieve, default if not specified is "requests", supported values are "logs", "requests", "recorded_expectations", "active_expectations"
126 responses:
127 '200':
128 description: recorded requests or active expectations returned
129 content:
130 application/json:
131 schema:
132 oneOf:
133 - type: array
134 additionalProperties: false
135 items:
136 $ref: "#/components/schemas/Expectation"
137 - type: array
138 additionalProperties: false
139 items:
140 $ref: "#/components/schemas/HttpResponse"
141 application/java:
142 schema:
143 type: string
144 description: Java code for the list of either Expectations or HttpResponses
145 text/plain:
146 schema:
147 type: string
148 description: List of recorded log messages
149 '400':
150 description: incorrect request format
151 requestBody:
152 content:
153 application/json:
154 schema:
155 $ref: "#/components/schemas/RequestDefinition"
156 description: >-
157 request used to match which recorded requests, expectations or log messages to return, an empty body matches all requests, expectations or log messages
158 /mockserver/verify:
159 put:
160 tags:
161 - verify
162 summary: verify a request has been received a specific number of times
163 responses:
164 '202':
165 description: matching request has been received specified number of times
166 '400':
167 description: incorrect request format
168 '406':
169 description: request has not been received specified numbers of times
170 content:
171 text/plain:
172 schema:
173 type: string
174 description: 'JUnit expected:<...> but was:<...> format'
175 requestBody:
176 content:
177 application/json:
178 schema:
179 $ref: "#/components/schemas/Verification"
180 description: request matcher and the number of times to match
181 required: true
182 /mockserver/verifySequence:
183 put:
184 tags:
185 - verify
186 summary: verify a sequence of request has been received in the specific order
187 responses:
188 '202':
189 description: request sequence has been received in specified order
190 '400':
191 description: incorrect request format
192 '406':
193 description: request sequence has not been received in specified order
194 content:
195 text/plain:
196 schema:
197 type: string
198 description: 'JUnit expected:<...> but was:<...> format'
199 requestBody:
200 content:
201 application/json:
202 schema:
203 $ref: "#/components/schemas/VerificationSequence"
204 description: the sequence of requests matchers
205 required: true
206 /mockserver/status:
207 put:
208 tags:
209 - control
210 summary: return listening ports
211 responses:
212 '200':
213 description: MockServer is running and listening on the listed ports
214 content:
215 application/json:
216 schema:
217 $ref: "#/components/schemas/Ports"
218 /mockserver/bind:
219 put:
220 tags:
221 - control
222 summary: bind additional listening ports
223 description: only supported on Netty version
224 responses:
225 '200':
226 description: >-
227 listening on additional requested ports, note: the response ony
228 contains ports added for the request, to list all ports use /status
229 content:
230 application/json:
231 schema:
232 $ref: "#/components/schemas/Ports"
233 '400':
234 description: incorrect request format
235 '406':
236 description: >-
237 unable to bind to ports (i.e. already bound or JVM process doesn't
238 have permission)
239 requestBody:
240 content:
241 application/json:
242 schema:
243 $ref: "#/components/schemas/Ports"
244 description: >-
245 list of ports to bind to, where 0 indicates dynamically bind to any
246 available port
247 required: true
248 /mockserver/stop:
249 put:
250 tags:
251 - control
252 summary: stop running process
253 description: only supported on Netty version
254 responses:
255 '200':
256 description: MockServer process is stopping
257components:
258 schemas:
259 Expectations:
260 title: "list of expectations"
261 oneOf:
262 - $ref: "#/components/schemas/Expectation"
263 - type: array
264 additionalProperties: false
265 items:
266 $ref: "#/components/schemas/Expectation"
267 Expectation:
268 title: "expectation"
269 type: object
270 additionalProperties: false
271 properties:
272 id:
273 type: string
274 priority:
275 type: integer
276 httpRequest:
277 $ref: "#/components/schemas/RequestDefinition"
278 openAPIDefinition:
279 $ref: "#/components/schemas/OpenAPIDefinition"
280 httpResponse:
281 $ref: "#/components/schemas/HttpResponse"
282 httpResponseTemplate:
283 $ref: "#/components/schemas/HttpTemplate"
284 httpResponseClassCallback:
285 $ref: "#/components/schemas/HttpClassCallback"
286 httpResponseObjectCallback:
287 $ref: "#/components/schemas/HttpObjectCallback"
288 httpForward:
289 $ref: "#/components/schemas/HttpForward"
290 httpForwardTemplate:
291 $ref: "#/components/schemas/HttpTemplate"
292 httpForwardClassCallback:
293 $ref: "#/components/schemas/HttpClassCallback"
294 httpForwardObjectCallback:
295 $ref: "#/components/schemas/HttpObjectCallback"
296 httpOverrideForwardedRequest:
297 $ref: "#/components/schemas/HttpOverrideForwardedRequest"
298 httpError:
299 $ref: "#/components/schemas/HttpError"
300 times:
301 $ref: "#/components/schemas/Times"
302 timeToLive:
303 $ref: "#/components/schemas/TimeToLive"
304 ExpectationId:
305 title: "pointer to existing expectation"
306 type: object
307 additionalProperties: false
308 properties:
309 id:
310 type: string
311 required:
312 - id
313 OpenAPIExpectations:
314 title: "list of open api expectations"
315 oneOf:
316 - $ref: "#/components/schemas/OpenAPIExpectation"
317 - type: array
318 additionalProperties: false
319 items:
320 $ref: "#/components/schemas/OpenAPIExpectation"
321 OpenAPIExpectation:
322 title: "open api or swagger expectation"
323 type: object
324 additionalProperties: false
325 properties:
326 specUrlOrPayload:
327 anyOf:
328 - type: string
329 - type: object
330 operationsAndResponses:
331 type: object
332 additionalProperties:
333 type: string
334 required:
335 - specUrlOrPayload
336 RequestDefinition:
337 title: "request definition"
338 oneOf:
339 - $ref: "#/components/schemas/HttpRequest"
340 - $ref: "#/components/schemas/OpenAPIDefinition"
341 HttpRequest:
342 title: "request properties matcher"
343 type: object
344 additionalProperties: false
345 properties:
346 secure:
347 type: boolean
348 keepAlive:
349 type: boolean
350 method:
351 $ref: "#/components/schemas/StringOrJsonSchema"
352 path:
353 $ref: "#/components/schemas/StringOrJsonSchema"
354 pathParameters:
355 $ref: "#/components/schemas/KeyToMultiValue"
356 queryStringParameters:
357 $ref: "#/components/schemas/KeyToMultiValue"
358 body:
359 $ref: "#/components/schemas/Body"
360 headers:
361 $ref: "#/components/schemas/KeyToMultiValue"
362 cookies:
363 $ref: "#/components/schemas/KeyToValue"
364 socketAddress:
365 $ref: "#/components/schemas/SocketAddress"
366 protocol:
367 $ref: "#/components/schemas/Protocol"
368 OpenAPIDefinition:
369 title: "open api or swagger request matcher"
370 type: object
371 additionalProperties: false
372 properties:
373 specUrlOrPayload:
374 type: string
375 operationId:
376 type: string
377 HttpResponse:
378 title: "response to return"
379 type: object
380 additionalProperties: false
381 properties:
382 delay:
383 $ref: "#/components/schemas/Delay"
384 body:
385 $ref: "#/components/schemas/BodyWithContentType"
386 cookies:
387 $ref: "#/components/schemas/KeyToValue"
388 connectionOptions:
389 $ref: "#/components/schemas/ConnectionOptions"
390 headers:
391 $ref: "#/components/schemas/KeyToMultiValue"
392 statusCode:
393 type: integer
394 reasonPhrase:
395 type: string
396 HttpTemplate:
397 title: "template to generate response / request"
398 type: object
399 additionalProperties: false
400 properties:
401 delay:
402 $ref: "#/components/schemas/Delay"
403 templateType:
404 enum:
405 - VELOCITY
406 - JAVASCRIPT
407 - MUSTACHE
408 template:
409 type: string
410 HttpForward:
411 title: host and port to forward to
412 type: object
413 additionalProperties: false
414 properties:
415 delay:
416 $ref: "#/components/schemas/Delay"
417 host:
418 type: string
419 port:
420 type: integer
421 scheme:
422 enum:
423 - HTTP
424 - HTTPS
425 HttpClassCallback:
426 title: class callback
427 type: object
428 additionalProperties: false
429 properties:
430 delay:
431 $ref: "#/components/schemas/Delay"
432 callbackClass:
433 type: string
434 HttpObjectCallback:
435 title: object / method callback
436 type: object
437 additionalProperties: false
438 properties:
439 delay:
440 $ref: "#/components/schemas/Delay"
441 clientId:
442 type: string
443 responseCallback:
444 type: boolean
445 HttpOverrideForwardedRequest:
446 title: override forwarded request
447 oneOf:
448 - type: object
449 additionalProperties: false
450 properties:
451 delay:
452 "$ref": "#/components/schemas/Delay"
453 requestOverride:
454 "$ref": "#/components/schemas/HttpRequest"
455 requestModifier:
456 type: object
457 additionalProperties: false
458 properties:
459 path:
460 type: object
461 additionalProperties: false
462 properties:
463 regex:
464 type: string
465 substitution:
466 type: string
467 queryStringParameters:
468 type: object
469 additionalProperties: false
470 properties:
471 add:
472 "$ref": "#/components/schemas/KeyToMultiValue"
473 replace:
474 "$ref": "#/components/schemas/KeyToMultiValue"
475 remove:
476 type: array
477 additionalProperties: false
478 items:
479 type: string
480 headers:
481 type: object
482 additionalProperties: false
483 properties:
484 add:
485 "$ref": "#/components/schemas/KeyToMultiValue"
486 replace:
487 "$ref": "#/components/schemas/KeyToMultiValue"
488 remove:
489 type: array
490 additionalProperties: false
491 items:
492 type: string
493 cookies:
494 type: object
495 additionalProperties: false
496 properties:
497 add:
498 "$ref": "#/components/schemas/KeyToValue"
499 replace:
500 "$ref": "#/components/schemas/KeyToValue"
501 remove:
502 type: array
503 additionalProperties: false
504 items:
505 type: string
506 responseOverride:
507 "$ref": "#/components/schemas/HttpResponse"
508 responseModifier:
509 type: object
510 additionalProperties: false
511 properties:
512 headers:
513 type: object
514 additionalProperties: false
515 properties:
516 add:
517 "$ref": "#/components/schemas/KeyToMultiValue"
518 replace:
519 "$ref": "#/components/schemas/KeyToMultiValue"
520 remove:
521 type: array
522 additionalProperties: false
523 items:
524 type: string
525 cookies:
526 type: object
527 additionalProperties: false
528 properties:
529 add:
530 "$ref": "#/components/schemas/KeyToValue"
531 replace:
532 "$ref": "#/components/schemas/KeyToValue"
533 remove:
534 type: array
535 additionalProperties: false
536 items:
537 type: string
538 - type: object
539 additionalProperties: false
540 properties:
541 delay:
542 "$ref": "#/components/schemas/Delay"
543 httpRequest:
544 "$ref": "#/components/schemas/HttpRequest"
545 httpResponse:
546 "$ref": "#/components/schemas/HttpResponse"
547 HttpError:
548 title: error behaviour
549 type: object
550 additionalProperties: false
551 properties:
552 delay:
553 $ref: "#/components/schemas/Delay"
554 dropConnection:
555 type: boolean
556 responseBytes:
557 type: string
558 Times:
559 title: "number of responses"
560 type: object
561 additionalProperties: false
562 properties:
563 remainingTimes:
564 type: integer
565 unlimited:
566 type: boolean
567 TimeToLive:
568 title: "time expectation is valid for"
569 type: object
570 additionalProperties: false
571 properties:
572 timeUnit:
573 enum:
574 - DAYS
575 - HOURS
576 - MINUTES
577 - SECONDS
578 - MILLISECONDS
579 - MICROSECONDS
580 - NANOSECONDS
581 timeToLive:
582 type: integer
583 unlimited:
584 type: boolean
585 KeyToMultiValue:
586 oneOf:
587 - type: array
588 additionalProperties: false
589 items:
590 type: object
591 additionalProperties: false
592 properties:
593 name:
594 type: string
595 values:
596 type: array
597 additionalProperties: false
598 items:
599 type: string
600 - type: object
601 additionalProperties: true
602 properties:
603 keyMatchStyle:
604 type: string
605 enum:
606 - MATCHING_KEY
607 - SUB_SET
608 default: SUB_SET
609 # patternProperties:
610 # "^(?!keyMatchStyle)\\S+$":
611 # oneOf:
612 # - type: array
613 # additionalProperties: false
614 # items:
615 # $ref: "#/components/schemas/StringOrJsonSchema"
616 # - type: object
617 # additionalProperties: false
618 # properties:
619 # parameterStyle:
620 # type: string
621 # enum:
622 # - SIMPLE
623 # - SIMPLE_EXPLODED
624 # - LABEL
625 # - LABEL_EXPLODED
626 # - MATRIX
627 # - MATRIX_EXPLODED
628 # - FORM_EXPLODED
629 # - FORM
630 # - SPACE_DELIMITED_EXPLODED
631 # - SPACE_DELIMITED
632 # - PIPE_DELIMITED_EXPLODED
633 # - PIPE_DELIMITED
634 # - DEEP_OBJECT
635 # default: ''
636 # values:
637 # type: array
638 # additionalProperties: false
639 # items:
640 # $ref: "#/components/schemas/StringOrJsonSchema"
641 KeyToValue:
642 oneOf:
643 - type: array
644 additionalProperties: false
645 items:
646 type: object
647 properties:
648 name:
649 type: string
650 value:
651 type: string
652 - type: object
653 additionalProperties: true
654 # patternProperties:
655 # "^\\S+$":
656 # $ref: "#/components/schemas/StringOrJsonSchema"
657 StringOrJsonSchema:
658 title: string value that can be support nottable, optional or a json schema
659 oneOf:
660 - type: string
661 - type: object
662 additionalProperties: false
663 properties:
664 not:
665 type: boolean
666 optional:
667 type: boolean
668 value:
669 type: string
670 schema:
671 $ref: http://json-schema.org/draft-04/schema
672 parameterStyle:
673 type: string
674 enum:
675 - SIMPLE
676 - SIMPLE_EXPLODED
677 - LABEL
678 - LABEL_EXPLODED
679 - MATRIX
680 - MATRIX_EXPLODED
681 - FORM_EXPLODED
682 - FORM
683 - SPACE_DELIMITED_EXPLODED
684 - SPACE_DELIMITED
685 - PIPE_DELIMITED_EXPLODED
686 - PIPE_DELIMITED
687 - DEEP_OBJECT
688 SocketAddress:
689 title: remote address to send request to
690 type: object
691 additionalProperties: false
692 properties:
693 host:
694 type: string
695 port:
696 type: integer
697 scheme:
698 enum:
699 - HTTP
700 - HTTPS
701 BinaryBodyMatcher:
702 type: object
703 description: "binary body matcher"
704 additionalProperties: false
705 properties:
706 not:
707 type: boolean
708 type:
709 enum:
710 - BINARY
711 base64Bytes:
712 type: string
713 contentType:
714 type: string
715 JsonBodyMatcher:
716 type: object
717 description: "json body matcher"
718 additionalProperties: false
719 properties:
720 not:
721 type: boolean
722 type:
723 enum:
724 - JSON
725 json:
726 type: string
727 contentType:
728 type: string
729 matchType:
730 enum:
731 - STRICT
732 - ONLY_MATCHING_FIELDS
733 RawJsonBodyMatcher:
734 type: object
735 description: "json matching fields body matcher"
736 additionalProperties: true
737 JsonSchemaBodyMatcher:
738 type: object
739 description: "json schema body matcher"
740 additionalProperties: false
741 properties:
742 not:
743 type: boolean
744 type:
745 enum:
746 - JSON_SCHEMA
747 jsonSchema:
748 $ref: http://json-schema.org/draft-04/schema
749 JsonPathBodyMatcher:
750 type: object
751 description: "JSON path body matcher"
752 additionalProperties: false
753 properties:
754 not:
755 type: boolean
756 type:
757 enum:
758 - JSON_PATH
759 jsonPath:
760 type: string
761 ParameterBodyMatcher:
762 type: object
763 description: "parameter body matcher"
764 additionalProperties: false
765 properties:
766 not:
767 type: boolean
768 type:
769 enum:
770 - PARAMETERS
771 parameters:
772 $ref: "#/components/schemas/KeyToMultiValue"
773 RegexBodyMatcher:
774 type: object
775 description: "regex body matcher"
776 additionalProperties: false
777 properties:
778 not:
779 type: boolean
780 type:
781 enum:
782 - REGEX
783 regex:
784 type: string
785 StringBodyMatcher:
786 type: object
787 description: "string body matcher"
788 additionalProperties: false
789 properties:
790 not:
791 type: boolean
792 type:
793 enum:
794 - STRING
795 string:
796 type: string
797 contentType:
798 type: string
799 subString:
800 type: boolean
801 RawStringBodyMatcher:
802 type: string
803 description: "substring body matcher"
804 XmlBodyMatcher:
805 type: object
806 description: "xml body matcher"
807 additionalProperties: false
808 properties:
809 not:
810 type: boolean
811 type:
812 enum:
813 - XML
814 xml:
815 type: string
816 contentType:
817 type: string
818 XmlSchemaBodyMatcher:
819 type: object
820 description: "xml schema body matcher"
821 additionalProperties: false
822 properties:
823 not:
824 type: boolean
825 type:
826 enum:
827 - XML_SCHEMA
828 xmlSchema:
829 type: string
830 XpathBodyMatcher:
831 type: object
832 description: "xpath body matcher"
833 additionalProperties: false
834 properties:
835 not:
836 type: boolean
837 type:
838 enum:
839 - XPATH
840 xpath:
841 type: string
842 Protocol:
843 description: "protocol matcher"
844 enum:
845 - HTTP_1_1
846 - HTTP_2
847 Body:
848 description: "request body matcher"
849 anyOf:
850 - $ref: "#/components/schemas/BinaryBodyMatcher"
851 - $ref: "#/components/schemas/JsonBodyMatcher"
852 - $ref: "#/components/schemas/RawJsonBodyMatcher"
853 - $ref: "#/components/schemas/JsonSchemaBodyMatcher"
854 - $ref: "#/components/schemas/JsonPathBodyMatcher"
855 - $ref: "#/components/schemas/ParameterBodyMatcher"
856 - $ref: "#/components/schemas/RegexBodyMatcher"
857 - $ref: "#/components/schemas/StringBodyMatcher"
858 - $ref: "#/components/schemas/RawStringBodyMatcher"
859 - $ref: "#/components/schemas/XmlBodyMatcher"
860 - $ref: "#/components/schemas/XmlSchemaBodyMatcher"
861 - $ref: "#/components/schemas/XpathBodyMatcher"
862 BinaryBodyResponse:
863 type: object
864 description: "binary response body"
865 additionalProperties: false
866 properties:
867 not:
868 type: boolean
869 type:
870 enum:
871 - BINARY
872 base64Bytes:
873 type: string
874 contentType:
875 type: string
876 JsonResponseBody:
877 type: object
878 description: "json response body"
879 additionalProperties: false
880 properties:
881 not:
882 type: boolean
883 type:
884 enum:
885 - JSON
886 json:
887 type: string
888 contentType:
889 type: string
890 RawJsonResponseBody:
891 type: object
892 description: "json response body"
893 additionalProperties: true
894 StringResponseBody:
895 type: object
896 description: "string response body"
897 additionalProperties: false
898 properties:
899 not:
900 type: boolean
901 type:
902 enum:
903 - STRING
904 string:
905 type: string
906 contentType:
907 type: string
908 RawStringResponseBody:
909 type: string
910 description: "string response body"
911 XmlResponseBody:
912 type: object
913 description: "xml response body"
914 additionalProperties: false
915 properties:
916 not:
917 type: boolean
918 type:
919 enum:
920 - XML
921 xml:
922 type: string
923 contentType:
924 type: string
925 BodyWithContentType:
926 description: "response body"
927 anyOf:
928 - $ref: "#/components/schemas/BinaryBodyResponse"
929 - $ref: "#/components/schemas/JsonResponseBody"
930 - $ref: "#/components/schemas/RawJsonResponseBody"
931 - $ref: "#/components/schemas/StringResponseBody"
932 - $ref: "#/components/schemas/RawStringResponseBody"
933 - $ref: "#/components/schemas/XmlResponseBody"
934 Delay:
935 description: "response delay"
936 type: object
937 additionalProperties: false
938 properties:
939 timeUnit:
940 type: string
941 value:
942 type: integer
943 ConnectionOptions:
944 description: "connection options"
945 type: object
946 additionalProperties: false
947 properties:
948 suppressContentLengthHeader:
949 type: boolean
950 contentLengthHeaderOverride:
951 type: integer
952 suppressConnectionHeader:
953 type: boolean
954 chunkSize:
955 type: integer
956 keepAliveOverride:
957 type: boolean
958 closeSocket:
959 type: boolean
960 closeSocketDelay:
961 $ref: "#/components/schemas/Delay"
962 Verification:
963 description: "verification"
964 type: object
965 additionalProperties: false
966 properties:
967 expectationId:
968 $ref: "#/components/schemas/ExpectationId"
969 httpRequest:
970 $ref: "#/components/schemas/RequestDefinition"
971 times:
972 $ref: "#/components/schemas/VerificationTimes"
973 maximumNumberOfRequestToReturnInVerificationFailure:
974 type: integer
975 VerificationTimes:
976 description: "number of request to verify"
977 type: object
978 additionalProperties: false
979 properties:
980 atLeast:
981 type: integer
982 atMost:
983 type: integer
984 VerificationSequence:
985 description: "verification sequence"
986 type: object
987 additionalProperties: false
988 properties:
989 expectationIds:
990 type: array
991 additionalProperties: false
992 items:
993 $ref: "#/components/schemas/ExpectationId"
994 httpRequests:
995 type: array
996 items:
997 $ref: "#/components/schemas/RequestDefinition"
998 maximumNumberOfRequestToReturnInVerificationFailure:
999 type: integer
1000 Ports:
1001 description: "list of ports"
1002 type: object
1003 additionalProperties: false
1004 properties:
1005 ports:
1006 items:
1007 type: number
1008 type: array