Automattic / Gravatar-SDK-iOS

Gravatar SDK is a Swift library that allows you to integrate Gravatar features into your own iOS applications.
https://gravatar.com
Mozilla Public License 2.0
36 stars 1 forks source link

Update openapi spec #382

Open etoledom opened 2 weeks ago

etoledom commented 2 weeks ago

Closes #

Description

We need the update on the backend before finishing and testing this PR.

TODO:

Note: I don't particularlt like that all the openapi structs are public. Many of these we use them internally only.

Testing Steps

andrewdmontgomery commented 5 days ago

Note: I don't particularly like that all the openapi structs are public. Many of these we use them internally only.

I believe we can accomplish this. We would update the make generate command:

  1. Run run-in-docker.sh generate -i openapi.yaml \ --global-property models... as we currently do
  2. Run it again, but this time:
    • --global-property models="InternalStruct1:InternalStruct2"
    • --additional-properties=nonPublicApi=true

I'll put up a draft PR to demonstrate.