From 2dc6b7dd05251b458f63a5b69e8166e4c6b981e4 Mon Sep 17 00:00:00 2001 From: Norbert Hartl Date: Sat, 1 Aug 2026 14:59:20 +0200 Subject: [PATCH] Add missing definitionProperties to JSONSchemaSingleItemSchemaConstraint Found while round-tripping real OpenAPI 3.0 documents through OpenAPI's document object model (fromString:/specString): the reference-resolve visitor generically introspects each constraint's definitionProperties, but this constraint overrides initializeFromDefinition: directly and never declared it - MessageNotUnderstood on any schema using items/ additionalItems (i.e. any array schema) that goes through that path. Co-Authored-By: Claude Sonnet 5 --- .../JSONSchemaSingleItemSchemaConstraint.class.st | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/source/JSONSchema-Core/JSONSchemaSingleItemSchemaConstraint.class.st b/source/JSONSchema-Core/JSONSchemaSingleItemSchemaConstraint.class.st index 21022b5..b59ceb2 100644 --- a/source/JSONSchema-Core/JSONSchemaSingleItemSchemaConstraint.class.st +++ b/source/JSONSchema-Core/JSONSchemaSingleItemSchemaConstraint.class.st @@ -18,6 +18,11 @@ JSONSchemaSingleItemSchemaConstraint >> initializeFromDefinition: aDefinition [ additionalItems := aDefinition additionalItems ] +{ #category : 'accessing' } +JSONSchemaSingleItemSchemaConstraint >> definitionProperties [ + ^ #( items additionalItems ) +] + { #category : 'accessing' } JSONSchemaSingleItemSchemaConstraint >> items [ ^ items