Repository navigation
Simplified response blocks show a VocabProperty as a bare string - #32
Merged
Merged
Conversation
Every TemperatureSensor and FillingLevelSensor on this page is created with
"category": { "type": "VocabProperty", "vocab": "sensor" }
but the three simplified-format response blocks show
"category": "sensor"
Clause 5.3.2.4 of the NGSI-LD API says that in simplified format a
VocabProperty is represented as "a JSON Object containing a single Attribute
with a key called vocab", and gives EXAMPLE 5:
"gender": {"vocab": "Male"}
A Property simplifies to its bare value; a VocabProperty keeps the `vocab`
wrapper. The creation payloads on this page already have it right - only the
expected output dropped it.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
jason-fox
approved these changes
Sep 21, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Every sensor on this page is created with
but the three simplified-format response blocks show
Clause 5.3.2.4 of the NGSI-LD API, on the simplified format:
EXAMPLE 5 in that clause is
"gender": {"vocab": "Male"}.A Property simplifies to its bare value; a VocabProperty keeps the
vocabwrapper. The creation payloads on this page already have it right — only the expected output dropped it.Checkable against the page alone, no broker needed. Found by comparing documented responses against real ones at value level; the same defect is in
tutorials.CRUD-Operations(#25).🤖 Generated with Claude Code