Skip to content

Commit

Permalink
make generator more readable
Browse files Browse the repository at this point in the history
Signed-off-by: Jordan Dubrick <[email protected]>
  • Loading branch information
Jdubrick committed Jun 25, 2024
1 parent ce8b9b9 commit 5a8d704
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
5 changes: 4 additions & 1 deletion index/generator/library/library.go
Original file line number Diff line number Diff line change
Expand Up @@ -737,7 +737,10 @@ func SetLastModifiedValue(index []schema.Schema, registryDirPath string) ([]sche

for i := range index {
for j := range index[i].Versions {
updateSchemaLastModified(&index[i], j, lastModifiedEntriesMap[index[i].Name][index[i].Versions[j].Version])
schemaItem := index[i] // a stack or sample
versions := schemaItem.Versions[j]
versionNum := versions.Version
updateSchemaLastModified(&schemaItem, j, lastModifiedEntriesMap[schemaItem.Name][versionNum])
}
}

Expand Down
2 changes: 0 additions & 2 deletions index/server/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,6 @@ paths:
- $ref: '#/components/parameters/gitRevisionParam'
- $ref: '#/components/parameters/providerParam'
- $ref: '#/components/parameters/supportUrlParam'
- $ref: '#/components/parameters/lastModifiedParam'
responses:
200:
$ref: '#/components/responses/indexResponse'
Expand Down Expand Up @@ -187,7 +186,6 @@ paths:
- $ref: '#/components/parameters/gitRevisionParam'
- $ref: '#/components/parameters/providerParam'
- $ref: '#/components/parameters/supportUrlParam'
- $ref: '#/components/parameters/lastModifiedParam'
responses:
200:
$ref: '#/components/responses/indexResponse'
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 5a8d704

Please sign in to comment.