# Packages

No description provided by the author
No description provided by the author

# README

squidexclient

The squidexclient package is scaffolded using the openapi-generator.

  • download the openapi 3.0 json file, go to squidex gui, api, general api, hit the download OpenApi button.
  • install the generator.
  • run the generator openapi-generator-cli generate -g go -i ./squidex-5.3-swagger.json -o ./squidexclient.
  • fix scaffolded issues related to this GitHub issue.
    • run a find & replace package openapi into package squidexclient
    • rename all golang constants (enums) because they are duplicated. Just prefix them with the type name they belong to.
    • I had to add 1 type manually FilterNodeOfIJsonValue, because it was missing and implemented as type object instead.
    • Correct all types on the dto's by removing the OneOf... prefix of the type name.

TODO: describe model_field_properties_dto_full.go custom replacement

  • copy model_field_properties_dto_full.go to squidexclient folder/package
  • delete model_field_properties_dto.go from squidexclient folder/package