Skip to content

add data/aliases.json#25

Merged
antond-weta merged 3 commits intoAcademySoftwareFoundation:mainfrom
antond-weta:aliases
Mar 30, 2026
Merged

add data/aliases.json#25
antond-weta merged 3 commits intoAcademySoftwareFoundation:mainfrom
antond-weta:aliases

Conversation

@antond-weta
Copy link
Copy Markdown
Collaborator

Add the alias mapping file, with all known to me alternative names for the cameras currently present in the database.
Note: there is currently no schema, or versioning available for this file. We may want to add one prior to next release.

Signed-off-by: Anton Dukhovnikov <antond@wetafx.co.nz>
Copy link
Copy Markdown

@soswow soswow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

Signed-off-by: Anton Dukhovnikov <antond@wetafx.co.nz>
Signed-off-by: Anton Dukhovnikov <antond@wetafx.co.nz>
Comment thread data/aliases.json
"license": "Apache-2.0"
},
"data": {
"camera": {
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we are not specifying what can be used here? Is expected? I thought point of schema was to play role of contract verification so programming code can expect things where they should be. Do we have code that specifically waits for camera? If so, should camera be mentioned explicitely as valid key here in schema?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it possible to mention it as a valid key, without restricting any other keys? I've never written a schema before.
Currently the entity types are defined as additionalProperties, so any value is allowed.

If mentioning camera would mean switching to patternProperties and allowing only camera in the pattern, I would prefer not to do that. In that case, adding any other entity type would require updating the schema, even though nothing in the data structure actually changes.
Same way as the code expects "R", "G", "B" channels in the camera files, yet the schema doesn't require that.

@antond-weta antond-weta merged commit 543ea4f into AcademySoftwareFoundation:main Mar 30, 2026
2 checks passed
@antond-weta antond-weta deleted the aliases branch March 30, 2026 05:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants