Skip to content

Conversation

@mahdanoura
Copy link
Contributor

@mahdanoura mahdanoura commented Jun 2, 2025

addresses point 2 of #28

This PR adds support for controlling additionalProperties in the generated JSON Schema by leveraging LinkML's annotation system. Since LinkML does not directly support the JSON Schema additionalProperties vocabulary, we implemented this using LinkML annotations with the following structure:

annotations:
  jsonschema_config:
    tag: jsonschema_config
    value:
      additionalProperties: true

The annotations have been added to:

  • Core interaction affordance classes (PropertyAffordance, ActionAffordance, EventAffordance)
  • Hypermedia controls (Form, Link)
  • Data schema classes (DataSchema and all its subclasses)
  • Security scheme classes (SecurityScheme and all its implementations)

@mahdanoura mahdanoura self-assigned this Jun 2, 2025
@mahdanoura mahdanoura merged commit 82be1df into main Jun 2, 2025
1 check failed
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