oapi-codegen icon indicating copy to clipboard operation
oapi-codegen copied to clipboard

refactor(codegen): better Swagger compression

Open gaiaz-iusipov opened this issue 10 months ago • 10 comments

gaiaz-iusipov avatar Feb 21 '25 19:02 gaiaz-iusipov

Thanks for this - is there an issue this solves? Or was this something you noticed and think it's worthwhile doing?

jamietanna avatar Jun 15 '25 07:06 jamietanna

Kusari Inspector

Kusari Analysis Results:

Proceed with these changes
✅ No Flagged Issues Detected All values appear to be within acceptable risk parameters.

No pinned version dependency changes, code issues or exposed secrets detected!

[!NOTE] View full detailed analysis result for more information on the output and the checks that were run.


@kusari-inspector rerun - Trigger a re-analysis of this PR @kusari-inspector feedback [your message] - Send feedback to our AI and team See Kusari's documentation for setup and configuration. Commit: 7767cdfdac76959c4aec992a0650a5e15cf77197, performed at: 2025-09-28T17:35:41Z

Found this helpful? Give it a 👍 or 👎 reaction!

kusari-inspector[bot] avatar Jun 15 '25 13:06 kusari-inspector[bot]

Thanks for this - is there an issue this solves? Or was this something you noticed and think it's worthwhile doing?

Hi! There’s no specific issue, these changes just provide a small performance boost:

  • reduce GC load (depending on the array size)
  • slightly reduce the size of the data in swaggerSpec
  • slightly speed up the decodeSpec() function

gaiaz-iusipov avatar Jun 15 '25 13:06 gaiaz-iusipov

Kusari PR Analysis rerun based on - 7ceda9067b301d0917ff529cf5e9c54b244e8d61 performed at: 2025-06-15T13:56:55Z - link to updated analysis

kusari-inspector[bot] avatar Jun 15 '25 13:06 kusari-inspector[bot]

Kusari PR Analysis rerun based on - 549d69f9524b48cc8a6bd4d62dfa540fec0a0e4e performed at: 2025-07-15T19:09:45Z - link to updated analysis

kusari-inspector[bot] avatar Jul 15 '25 19:07 kusari-inspector[bot]

Kusari PR Analysis rerun based on - 65f9a844991800215ea8661b620b0e8fbc2980a1 performed at: 2025-07-17T09:44:18Z - link to updated analysis

kusari-inspector[bot] avatar Jul 17 '25 09:07 kusari-inspector[bot]

Kusari PR Analysis rerun based on - 152681f21538a5b4935f8698c405f2f7aac72fca performed at: 2025-07-28T17:48:33Z - link to updated analysis

kusari-inspector[bot] avatar Jul 28 '25 17:07 kusari-inspector[bot]

Kusari PR Analysis rerun based on - de8869aee90a290d7f23cda2a34ded61fb49aa77 performed at: 2025-08-29T15:40:28Z - link to updated analysis

kusari-inspector[bot] avatar Aug 29 '25 15:08 kusari-inspector[bot]

Kusari PR Analysis rerun based on - 7767cdfdac76959c4aec992a0650a5e15cf77197 performed at: 2025-09-28T17:35:58Z - link to updated analysis

kusari-inspector[bot] avatar Sep 28 '25 17:09 kusari-inspector[bot]

(Feel free to not keep this branch updated, when I come back to this PR, I'll get it updated / address any conflicts if needed)

jamietanna avatar Sep 28 '25 19:09 jamietanna