Skip to content

Commit

Permalink
add response
Browse files Browse the repository at this point in the history
  • Loading branch information
reuvenharrison committed Sep 15, 2024
1 parent e2387b3 commit 05b2775
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion checker/generator/generator_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ func TestTreeGenerator(t *testing.T) {
require.NoError(t, generator.Generate(generator.GetTree("tree.yaml"), &out))
count, err := lineCounter(&out)
require.NoError(t, err)
require.Equal(t, 176, count)
require.Equal(t, 260, count)
}

func lineCounter(r io.Reader) (int, error) {
Expand Down
7 changes: 7 additions & 0 deletions checker/generator/tree.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,13 @@ changes:
- objects: [success response status, non-success response status]
predicativeAdjective: "%s"
startWith: action
nextLevel:
response:
nextLevel:
media-type:
nextLevel:
schema:
$ref: 'schema'
request parameter:
nextLevel:
schema:
Expand Down

0 comments on commit 05b2775

Please sign in to comment.