Skip to content

Commit

Permalink
minor
Browse files Browse the repository at this point in the history
  • Loading branch information
maastha committed Oct 11, 2024
1 parent 346915a commit c8e5e06
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tools/codegen/codespec/api_spec.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ func getSchemaFromMediaType(mediaTypes *orderedmap.Map[string, *high.MediaType])
return nil, errSchemaNotFound
}

// hard-coding API version for now, this should be dynamically handled to perhaps use the latest API version
// hard-coding a default API version for now, if "application/vnd.atlas.2023-01-01+json" version is not found
// then sortedMediaTypes below will read the available media type
jsonMediaType, ok := mediaTypes.Get("application/vnd.atlas.2023-01-01+json")
if ok && jsonMediaType.Schema != nil {
s, err := BuildSchema(jsonMediaType.Schema)
Expand Down

0 comments on commit c8e5e06

Please sign in to comment.