Skip to content

Commit

Permalink
update optic.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Aidan Cunniffe committed Oct 15, 2023
1 parent d7c7d3f commit 2efdc88
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ optic capture openapi.yml --update interactive

Optic's `diff` command tests that API changes are backwards compatible, and that new and existing API endpoints follow your style guide. The style guide is configured in the `optic.yml` file.

Run:
Compute a diff:

```
optic diff openapi.yml --check --web
Expand Down
12 changes: 6 additions & 6 deletions optic.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
ruleset:
- breaking-changes
# - naming:
# required_on: added
# properties: snake_case
# pathComponents: snake_case
# queryParameters: snake_case
- naming:
required_on: always
properties: camelCase
pathComponents: snake_case
queryParameters: snake_case
capture:
openapi.yml:
# 🔧 Runnable example with simple get requests.
# Run with "optic capture openapi.yml --update interactive"
# You can change the server and the 'requests' section to experiment
# You can run your actual tests through the Optic proxy with the `command` option (next example)
server:
url: https://api.useoptic.com/
requests:
Expand Down

0 comments on commit 2efdc88

Please sign in to comment.