Bartłomiej Krakowski
07/26/2023, 6:11 PMYour Provider Contract Is Not Compatible With The Provider Codebase. How can I see the details?
I generate OpenAPI automatically using @fastify/swagger.
Self verification logs looks like this:
openapi: 3.0.3
info:
title: My provider
description: API
version: 0.1.0
components:
schemas:
Schema:
type: object
properties:
userSchemaRequest:
type: object
properties:
id:
type: string
required:
- id
additionalProperties: false
userSchemaReply:
type: object
properties:
id:
type: string
name:
type: string
required:
- id
- name
additionalProperties: false
userSchemaReplyArray:
type: array
items:
$ref: "#/components/schemas/Schema/properties/userSchemaReply"
required:
- userSchemaRequest
- userSchemaReply
- userSchemaReplyArray
additionalProperties: false
paths:
/users:
get:
operationId: getAllUsers
description: Get all users
responses:
"200":
description: Default Response
content:
application/json:
schema:
$ref: "#/components/schemas/Schema/properties/userSchemaReplyArray"
"/users/{id}":
get:
operationId: getUser
description: Get a user by id
parameters:
- schema:
type: string
in: path
name: id
required: true
responses:
"200":
description: Default Response
content:
application/json:
schema:
$ref: "#/components/schemas/Schema/properties/userSchemaReply"Yousaf Nabi (pactflow.io)
Yousaf Nabi (pactflow.io)
[--verification-success], [--no-verification-success]
# Whether or not the self verification passed successfully.
[--verification-exit-code=N]
# The exit code of the verification process. Can be used instead
of --verification-success|--no-verification-success for a