Teodor Heggelund
Teodor Heggelund
I added a unittest that ensures that we don't throw when decoding base64 - which passes.
Thanks for taking the time to give a solid response. It looks like polyfills in Swagger UI is a bigger piece of work than I imagined. If we merged this...
Here's a minimal example that reproduces the load issues for SwaggerUI on a Vite app - with stacktrace pointing to `randombytes`: https://github.com/teodorlu/swagger-ui-on-vite I'm going to see what I can do...
I agree that Swagger UI needs to keep its scope narrow enough to maintain. Supporting everything in the world doesn't work. Yet - I'd argue that removing dependencies is a...
@char0n - thanks for the response. Possible further steps: 1. Find other "randombytes" call sites and propose alternatives 2. Try to build Swagger UI NPM packages - and see if...
Hi @BeMoreDog! I haven't had the time to move this further. In the meantime, here's a snippet from our `main.tsx` which works around the issue. Perhaps a temporary fix for...
Two questions to start off: 1. How do we represent units in data? 2. Are there test cases or examples for the units scheme code? I'll dig a bit.
Scheme examples from [units/system.scm][1]: [1]: https://github.com/Tipoca/scmutils/blob/master/src/units/system.scm#L297-L310 ```scheme (with-units->expression SI &foot) ;Value: (& .3048 &meter) (with-units->expression SI (& 2 &foot)) ;Value: (& .6096 &meter) (with-units->expression SI (/ (* :k (& 300...
_Should constants constants have a symbolic representation, or should they be normal values?_ Should we be able to treat `c` first as a symbol, but be able to substitute the...
I'm struggling to find a good starting point. I don't really understand what kind of data model the scheme implementation chose. That makes it hard for me to choose a...