-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
Currently, the aptos.util module contains a class Parser with a static method parse to parse JSON formatted specifications.
Ideally, the Parser class should serve more as an interface for concrete parser classes to implement. Therefore, the Parser.parse method should raise a NotImplementedError.
class Parser:
"""Parser interface"""
@staticmethod
def parse(instance):
raise NotImplementedError()
class JSONSchemaParser(Parser):
@staticmethod
def parse(instance):
# Algorithm for parsing JSON schema documentsReactions are currently unavailable