In Advanced Scoring Scripting for AzureML webservice, to automatically generate a schema for our web service, we provide a sample of the input and/or output in the constructor for one of the defined type objects. The type and sample are used to automatically create the schema.
To use schema generation, we include the open-source inference-schema package version 1.1.0 or above. The types that I can find include Numpy Type, Pandas Type, Abstract Parameter type.
How do we define the schema for a Nested Dictionary of (generalized) format:
{ "top_level_key": [
{"nested_key_1": "string_1",
"nested_key_2": <float_number>,
"nested_key_3": <True/False>}
]
}