Skip to content

Commit

Permalink
docs(oas-to-snippet): fixing an improper option being passed in the docs
Browse files Browse the repository at this point in the history
  • Loading branch information
erunion committed Oct 24, 2023
1 parent 272e568 commit 3c9d040
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/oas-to-snippet/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ const registryIdentifier: '@petstore/v2.0#17273l2glm9fq4l5';
// This will return an object containing `code` and `highlightMode`. `code` is the generated code
// snippet, while `highlightMode` is the language mode you can use to render it for syntax
// highlighting (with @readme/syntax-highlighter, for example).
const { code, highlightMode } = oasToSnippet(apiDefinition, operation, formData, auth, language, { openapi: registryIdentifier });
const { code, highlightMode } = oasToSnippet(apiDefinition, operation, formData, auth, language, { openapi: { registryIdentifier } });
```

## Supported Languages
Expand Down

0 comments on commit 3c9d040

Please sign in to comment.