Hi! :wave: I'm getting the following error (Pactfl...
# pact-broker
b
Hi! 👋 I'm getting the following error (Pactflow):
Your 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:
Copy code
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"
blobwave 2
y
Please raise PactFlow specific questions in the #CLS16AVEE channel the self-verification result is based on the verification-success or verification-exit-code parameters provided when uploading the contract. how these are set depends on your own particular setup (they are user provided params)
🙌 1
It is one of these options fyi referenced here which points to the source docs here
Copy code
[--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
☝️ 1
👀 1
🙌 1