JSONãYAMLã使ãã¨ãããªãè¤éãªãã¼ã¿ãä½æã§ãã¾ããããããæå³éãã®å½¢å¼ã«ãªã£ã¦ãããã確èªããã®ã¯èªæã§ã¯ããã¾ãããXMLã«ã¯XML Schemaãããã¾ããããããªæãã®ãã®ãJSONã«ã欲ããã£ãã®ã§ãä½ãã¾ããã github.com ãããªæãã§ä½¿ãã¾ãã Schema = StrongJSON.new do let :phone, object(phone: string) let :email, object(email: string) let :contact, enum(phone, email) let :person, object(name: string, contacts: array(contact)) end json = Schema.person.coerce(JSON.parse(input, symbolize_names: true
{{#tags}}- {{label}}
{{/tags}}