Upgrade to Pro — share decks privately, control downloads, hide ads and more …

もう一度JSON Schemaの話をしよう ~ Form / Validation / View ~

もう一度JSON Schemaの話をしよう ~ Form / Validation / View ~

もう一度JSON Schemaの話をしよう
~ Form / Validation / View ~

Meguro.es #8 2017/2/7
https://meguroes.connpass.com/event/47839/

Shimpei Takamatsu

February 07, 2017
Tweet

More Decks by Shimpei Takamatsu

Other Decks in Technology

Transcript

  1.  ▪ ߴদ ਅฏ (@shimpeiws) ▪ WebΤϯδχΞ @ ΞΧπΩ LXࣄۀ෦

    ɹɾRailsͱJavaScriptΛ൒ʑ͘Β͍ॻ͍͍ͯΔ ▪ LX(ϥΠϒΤΫεϖϦΤϯε)ࣄۀ෦ ɹɾཱྀφΧɾΞΫςΟϏςΟɺཱྀߦɺΠϯό΢ϯυͳͲ ɹɾϦΞϧͳମݧͷػձΛఏڙ͢ΔαʔϏε౳Λ޿ؚ͘Ή ࢲ͸୭
  2.  ▪ ߟ͑ͨ ɹɾεΩʔϚϨεʹ͢Δʹ͸… ɹɹɾྫ͑͹MongoDB ɹɹ ɾ3.2͔ΒೖͬͨυΩϡϝϯτόϦσʔγϣϯ͸ͪΐͬͱັྗ ɹɹ ɾMongoDBΒ͍͠෦෼͸ඞཁͱ͍ͯ͠ͳ͍(JSONͷΩʔͰҾ͚Δͱ͔ɺੑ ೳ໘ͱ͔…)

    ɹɹɾӡ༻΋ߟ͑ͯطଘͷMySQLͷJSONܕΛ࢖͏ͷ͕མͱ͠ॴʹͳͬͨ ɹɹ ɾ߲໨ͷఆٛͱόϦσʔγϣϯ͸Ͳ͏͠Α͏͔…. ɹɹ ɾͦ͜ͰJSON Schemaͷ࿩!!! ͜Μͳ͜ͱ͕͔ͨͬͨ͠
  3.  ▪ From ɹɾmozilla-services/react-jsonschema-form ɹɾJSON Schema͔ΒFormΛಈతʹੜ੒ ▪ Validation ɹɾruby-json-schema/json-schema ɹɾJSON

    SchemaͰValidationΛ͔͚ͯActive Record΁ͷܨࠐΈΛࣗ࡞ ▪ View ɹɾFrom͔Βདྷͨ஋͸ɺMySQLͷJSONܕʹอ࣋ ɹɾ߲໨ͷ೔ຊޠϥϕϧ͸JSON SchemaͷtitleଐੑΛ࢖͏ 'PSN7BMJEBUJPO7JFX