Marcin Raczyński
Marcin Raczyński
The same issue with 2,5MB schema: ``` $ redoc-cl) bundle openapi.json Prerendering docs [13127:0x4db9f90] 233579 ms: Scavenge 7964.5 (8009.0) -> 7964.1 (8009.2) MB, 2552.7 / 0.0 ms (average mu =...
The same on Ubuntu 20.10, SWI-Prolog version 8.2.1 for x86_64-linux.
The command `swipl -g main /home/marcinr/.local/bin/lib/node_modules/xsd2json/lib-pl/cli.pl -- ~/Downloads/RNI_ZY_1.0.1.xsd.txt` hangs as well.
I suspect that it actually does not hang but it is running really slow. After reducing the complexity of the attached file I've managed to generate JSON in about one...
Well, the full XSD attached is actually converting in 3 minutes on AMD Ryzen 3 3200G 3,6GHz, 16GB RAM, Ubuntu 20.10.
```xml ``` could be translated to: ```yaml type: object properties: owl: type: string required: [owl] oneOf: - properties: cat: type: string required: [cat] - properties: dog: type: string - properties:...
My solution is: ```python @contextlib.contextmanager def caplog_for_logger(caplog, logger_name): caplog.clear() caplog.set_level(logging.CRITICAL) # Mute the root-logger logger = logging.getLogger(logger_name) logger.addHandler(caplog.handler) yield logger.removeHandler(caplog.handler) def test_foobar(self, caplog): with caplog_for_logger(caplog, 'my-logger-name): # testing .... ```
Any updates?
Any progress in this subject?