diggsweden / DCAT-AP-SE-Processor

GNU General Public License v3.0
9 stars 8 forks source link

Refactor ApiDefinitionParser to fix issue #23 #25

Open jonasseglare opened 1 year ago

jonasseglare commented 1 year ago

Refactor ApiDefinitionParser to fix issue #23

Description

This PR addresses the issue #23 where a compact json string is incorrectly parsed as Yaml/Raml. To address that bug, I put the logic to identify the syntax in the method guessSyntax and I also unit test that method to make sure that the bug is actually fixed. Along with this, I also restructured the code a bit in ApiDefinitionParser.

Fixes #23

Checklist