Skip to content

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
welps committed May 22, 2019
1 parent ffebd3d commit cc3bb2d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -705,6 +705,8 @@ type SchemaSwitch struct {
// Each key = the value for the field being evaluated (ex: "turtle")
// Each value = the struct that holds the jsonschema tags to validate against when it is that value (ex: Turtle{})
Cases map[string]interface{}
// Order - the fields from `Cases` can be provided here to guarantee output in specified order, otherwise this will be seeded internally
Order []string
}
```

Expand Down
2 changes: 1 addition & 1 deletion subschemas_switch.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ type SchemaSwitch struct {
// Each key = the value for the field being evaluated (ex: "turtle")
// Each value = the struct that holds the jsonschema tags to validate against when it is that value (ex: Turtle{})
Cases map[string]interface{}
// Order = Elements present based on insertion oreder
// Order - the fields from `Cases` can be provided here to guarantee output in specified order, otherwise this will be seeded internally
Order []string
}

Expand Down

0 comments on commit cc3bb2d

Please sign in to comment.