From e00409cf575d737bd39449492f1ddddea41bb49a Mon Sep 17 00:00:00 2001 From: Noam Gat Date: Sat, 4 May 2024 17:15:30 +0300 Subject: [PATCH] More documentation --- lmformatenforcer/characterlevelparser.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lmformatenforcer/characterlevelparser.py b/lmformatenforcer/characterlevelparser.py index 417c87b..a27b661 100644 --- a/lmformatenforcer/characterlevelparser.py +++ b/lmformatenforcer/characterlevelparser.py @@ -24,8 +24,11 @@ class CharacterLevelParserConfig: alphabet: str = COMPLETE_ALPHABET max_consecutive_whitespaces: int = _env_or_default_field(CONFIG_ENV_VAR_MAX_CONSECUTIVE_WHITESPACES, DEFAULT_MAX_CONSECUTIVE_WHITESPACES) + """How many consective whitespaces the JsonSchemaParser will allow""" force_json_field_order: bool = _env_or_default_field(CONFIG_ENV_VAR_LMFE_FORCE_JSON_FIELD_ORDER, DEFAULT_FORCE_JSON_FIELD_ORDER) + """Whether the JsonSchemaParser will force fields to appear in the + order of the 'required' field in the schema""" class CharacterLevelParser(abc.ABC):