Skip to content

Fix validate deployenabled types#52

Open
Chandraveersingh1717 wants to merge 3 commits intometacall:masterfrom
Chandraveersingh1717:fix-validate-deployenabled-types
Open

Fix validate deployenabled types#52
Chandraveersingh1717 wants to merge 3 commits intometacall:masterfrom
Chandraveersingh1717:fix-validate-deployenabled-types

Conversation

@Chandraveersingh1717
Copy link

The validate() and deployEnabled() methods were returning Promise, but according to swagger.yaml they actually return a ServiceInfo object with service metadata (id, name, version, organization, etc).

This caused type mismatches where users couldn't access the actual response data. Added the ServiceInfo interface and updated both methods to return the correct type.

Changes:

  • Added ServiceInfo interface matching the swagger schema
  • Changed validate() return type from Promise to Promise
  • Changed deployEnabled() return type from Promise to Promise
  • Updated axios generic types in the implementations

All tests passing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant