Skip to content

Conversation

joel-bach
Copy link
Member

@joel-bach joel-bach commented May 24, 2021

…t exist in the specification

Example output:

Generating Stripe specification with --white-listed-schema=acounts --operation-to-generate=GetChekout

WARN  (paths): The operation 'GetChekout' which is listed for generation does not appear in the provided OpenAPI specification (Did you mean one of following options? GetCheckoutSessions, GetCheckoutSessionsSession, GetCharges).
WARN  (components.schemas): The white-listed schema 'acounts' does not appear in the provided OpenAPI specification (Did you mean one of following options? account, account_branding_settings, account_business_profile).

Generating Stripe specification with --operation-to-generate=GetCheckout

WARN  (paths): The operation 'GetCheckout' which is listed for generation does not appear in the provided OpenAPI specification (Did you mean one of following options? GetCheckoutSessions, GetCheckoutSessionsSession, PostCheckoutSessions).

Generating Stripe specification with --operation-to-generate=invoice

WARN  (paths): The operation 'invoice' which is listed for generation does not appear in the provided OpenAPI specification (Did you mean one of following options? GetInvoiceitems, PostInvoiceitems, GetInvoiceitemsInvoiceitem).

@NorfairKing
Copy link
Contributor

Looks great! But could you line up the options vertically? That would be much easier to read through..

@joel-bach joel-bach merged commit f43b772 into master May 25, 2021
@joel-bach joel-bach deleted the feature/warn-about-unknown-operations-and-schemas branch May 25, 2021 08:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants