Search code examples
loopbackjsstrongloopjsonschemaapiconnect

LoopBack Model Definition vs json-schema


Newbie: Trying to better understand how Loopback Model Definition relates (if at all) to json-schema. Will I be able to just write a json-schema file and use that as the Loopback Model Definition?


Solution

  • While there are definitely some close similarities between the two, json-schema and LoopBack's model definition are not the same.

    If you have existing JSON schemas, you can probably convert those to LoopBack model definitions, but depending on how complex / advanced your schemas are will determine how easy that conversion is.