openapi-enforcer icon indicating copy to clipboard operation
openapi-enforcer copied to clipboard

Needs TypeScript definition file

Open stuft2 opened this issue 5 years ago • 11 comments

stuft2 avatar Jan 08 '20 15:01 stuft2

I've begun work on this.

Gi60s avatar Jan 10 '20 18:01 Gi60s

Any progress?

malkevych avatar Dec 24 '20 09:12 malkevych

Yes. I've been rewriting the library in typescript. It's not the fastest way to get to a TypeScript definition file though so I might have to rethink the approach.

Gi60s avatar Jan 07 '21 02:01 Gi60s

@Gi60s do you need some help on this? Would you share your work at some git branch?

sempasha avatar Jan 08 '21 12:01 sempasha

@sempasha I'm always willing to accept some help and feedback. As far as receiving those changes I'm more accustomed to forks and pull requests. I didn't even know it was possible to share a single branch.

Would you be willing to try the fork and PR method? Or, are you referring to helping on version 2 with Typescript?

Gi60s avatar Jan 11 '21 15:01 Gi60s

Or, are you referring to helping on version 2 with Typescript

@Gi60s, that is exactly what I mean. You said you rewriting library in typescript. And I'm asking you to share your work on this at some branch, to let community help you with this.

sempasha avatar Jan 11 '21 19:01 sempasha

@sempasha I will share it soon. It's far from complete but I'm cleaning up a few loose ends, then I'll share so other can contribute. Hopefully tomorrow.

Gi60s avatar Jan 12 '21 20:01 Gi60s

Happy to hear some updates! We have used this library a while now, really appreciate your work.

olof-nord avatar Jan 27 '21 16:01 olof-nord

Thank you @olof-nord. I appreciate the support that many have given to make this project a success.

For anyone that is interested in helping to shape version 2, please see the newly opened discussion board.

Gi60s avatar Jan 27 '21 19:01 Gi60s

Any updates on this?

zacharytwhite avatar Jan 13 '23 17:01 zacharytwhite

Yes, there are updates. I'm actively working on v2 on this branch: https://github.com/Gi60s/openapi-enforcer/tree/v2

v2 will have these features and a few more I'm sure:

  • Written in TypeScript 🎉
  • Will be more flexible with error escalation and de-escalation
  • Will include the file path and line numbers in errors
  • Will run in the browser and in Node
  • Will support multiple languages. Although the initial release will likely just be English, it's built to easily extend to additional languages.

If anyone is interested in helping to write v2 then we should talk.

Gi60s avatar Jan 13 '23 23:01 Gi60s