Closed inferrinizzard closed 2 months ago
Adds extra steps to emit top level Primitives in the following languages:
TypeScriptFlowRenderer.emitTypes
Kotlin.emitSourceStructure
Fixes #2488
{ "id": "http://json-schema.org/geo", "$schema": "http://json-schema.org/draft-06/schema#", "description": "Top level primitive", "type": "number" }
Previously had no output in types section, only converters
TypeScript:
/** * Top level primitive */ type Coordinate = number;
Kotlin:
/** * Top level primitive */ typealias Coordinate = Double
Added new top-level-primitive.schema test
top-level-primitive.schema
N/a
Description
Adds extra steps to emit top level Primitives in the following languages:
TypeScriptFlowRenderer.emitTypes
Kotlin.emitSourceStructure
Motivation and Context
Fixes #2488
Input Data
Previous Behaviour / Output
Previously had no output in types section, only converters
New Behaviour / Output
TypeScript:
Kotlin:
How Has This Been Tested?
Added new
top-level-primitive.schema
testScreenshots (if appropriate):
N/a