Skip to content

Commit

Permalink
fixup: update CHANGELOG.md and openapi spec, return tm+json fetching …
Browse files Browse the repository at this point in the history
…by fetch name
  • Loading branch information
alexbrdn committed Dec 12, 2024
1 parent 9b73168 commit 47ee7f2
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@
- `check`: removed subcommands of `check` command, unifying both into the parent command
- `repo`: reorganized commands that change repo config: renamed/created `config auth`, `config description`, and `config headers` commands

### Fixed

- return "application/tm+json" as MIME type when fetching TMs via API

## [v0.1.1]

### Added
Expand Down
4 changes: 2 additions & 2 deletions api/tm-catalog.openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ paths:
**For the schema of the returned Thing Model see** [Thing Model JSON schema](https://github.com/w3c/wot-thing-description/blob/main/validation/tm-json-schema-validation.json)
content:
application/json:
application/tm+json:
schema:
type: object
'400':
Expand Down Expand Up @@ -355,7 +355,7 @@ paths:
**For the schema of the returned Thing Model see** [Thing Model JSON schema](https://github.com/w3c/wot-thing-description/blob/main/validation/tm-json-schema-validation.json)
content:
application/json:
application/tm+json:
schema:
type: object
'400':
Expand Down
2 changes: 1 addition & 1 deletion internal/app/http/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ func (h *TmcHandler) GetThingModelByFetchName(w http.ResponseWriter, r *http.Req
return
}

HandleByteResponse(w, r, http.StatusOK, MimeJSON, data)
HandleByteResponse(w, r, http.StatusOK, MimeTMJSON, data)
}

// GetInventoryByID returns the metadata of a single TM by ID
Expand Down

0 comments on commit 47ee7f2

Please sign in to comment.