square / square/connect-api-specification

OpenAPI Generator Spec fails validation on divergent OpenAPI fork

Open Beginner friendly
#229 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Mustache
Stars
76
Forks
36
Avg merge
3h 14m
Merged PRs (30d)
1

Description

OpenAPI v3 has a very commonly used fork including many languages not supported by Swagger's version of OpenAPI v3. The API spec for Square fails to validate for OpenAPI Generator due to the following issues:

  • attribute components.schemas.CatalogModifierOverride.CatalogModifierToggleOverrideType is not of type schema
  • paths.'/v2/vendors/{vendor_id}'. Declared path parameter vendor_id needs to be defined as a path parameter in path or operation level
  • attribute info.externalDocs is unexpected

These can be fixed by the following changes:

  1. Image
  2. Image
  3. Image

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Locate the Square API specification entries for CatalogModifierOverride.CatalogModifierToggleOverrideType, the /v2/vendors/{vendor_id} path, and info.externalDocs. Run OpenAPI Generator validation against the spec and compare the reported errors with the three requested corrections. Done means the specification passes validation without these errors.

Written by the indexing model from the issue text.

Assessment

Tech stack
openapi
Domain
api
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
63/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.