import { registerExamples } from '../register' ; export const schema = { definitions : { address : { type : 'object' , properties : { street_address : { type : 'string' } , city : { type : 'string' } , state : { type : 'string' } , coord : { $ref : '#/definitions/coord' } } , required : [ 'street_address' , 'city' , 'state' ] } , coord : { $ref : 'geographical-location.schema.json#' } } , type : 'object' , properties : { address : { $ref : '#/definitions/address' } } } ; export const uischema = { type : 'VerticalLayout' , elements : [ { type : 'Control' , scope : '#/properties/address/properties/street_address' } , { type : 'Control' , scope : '#/properties/address/properties/city' } , { type : 'Control' , scope : '#/properties/address/properties/state' } , { type : 'Control' , scope : '#/properties/address/properties/coord' } ] } ; export const data = { address : { street_address : 'Agnes-Pockels Bogen 1' , city : 'Munich' , state : 'Bavaria' } } ; registerExamples ( [ { name : 'resolve' , label : 'Resolve Remote Schema' , data , schema , uischema } ] ) ;