jentic-openapi-parser 1.0.0a10__py3-none-any.whl → 1.0.0a12__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -53,7 +53,11 @@ class CustomEncoder(json.JSONEncoder):
53
53
 
54
54
 
55
55
  def json_dumps(
56
- data: Any, indent: int | None = None, *, cls: type[json.JSONEncoder] = CustomEncoder
56
+ data: Any,
57
+ indent: int | None = None,
58
+ *,
59
+ sort_keys: bool = False,
60
+ cls: type[json.JSONEncoder] = CustomEncoder,
57
61
  ) -> str:
58
62
  """Serialize data to a JSON string with extended type support.
59
63
 
@@ -64,6 +68,7 @@ def json_dumps(
64
68
  Args:
65
69
  data: The data to serialize (dict, list, or any JSON-compatible type)
66
70
  indent: Number of spaces for indentation. None for compact output.
71
+ sort_keys: Whether to sort keys in the output. Defaults to False.
67
72
  cls: Custom JSON encoder class. Defaults to CustomEncoder.
68
73
 
69
74
  Returns:
@@ -82,7 +87,7 @@ def json_dumps(
82
87
  indent=indent,
83
88
  ensure_ascii=False,
84
89
  allow_nan=False,
85
- sort_keys=True,
90
+ sort_keys=sort_keys,
86
91
  separators=(",", ":") if indent is None else (",", ": "),
87
92
  cls=cls,
88
93
  )
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: jentic-openapi-parser
3
- Version: 1.0.0a10
3
+ Version: 1.0.0a12
4
4
  Summary: Jentic OpenAPI Parser
5
5
  Author: Jentic
6
6
  Author-email: Jentic <hello@jentic.com>
@@ -8,7 +8,7 @@ License-Expression: Apache-2.0
8
8
  License-File: LICENSE
9
9
  License-File: NOTICE
10
10
  Requires-Dist: attrs~=25.4.0
11
- Requires-Dist: jentic-openapi-common~=1.0.0a10
11
+ Requires-Dist: jentic-openapi-common~=1.0.0a12
12
12
  Requires-Dist: pyyaml~=6.0.3
13
13
  Requires-Dist: requests~=2.32.5
14
14
  Requires-Dist: ruamel-yaml~=0.18.15
@@ -8,10 +8,10 @@ jentic/apitools/openapi/parser/core/exceptions.py,sha256=wtH_kRvn3b3TsM4HEkTKLCd
8
8
  jentic/apitools/openapi/parser/core/loader.py,sha256=Q57UiWiJACeuxMdroHAAEcoU-lwvxiRBcdz106N2VVQ,1462
9
9
  jentic/apitools/openapi/parser/core/openapi_parser.py,sha256=GCFEZZ6g4CrqJauz7AilEAxT-v31D8TP6zsIms9jLl8,7551
10
10
  jentic/apitools/openapi/parser/core/py.typed,sha256=uEf7mrkecd7wYBi4Jxa95cHb65ZSz_tMK6UDi55KymA,33
11
- jentic/apitools/openapi/parser/core/serialization.py,sha256=-VAFfYUnth3El6Rc59dL5uCpPTBq7u5XsFqIvRzwn18,2689
12
- jentic_openapi_parser-1.0.0a10.dist-info/licenses/LICENSE,sha256=WNHhf_5RCaeuKWyq_K39vmp9F28LxKsB4SpomwSZ2L0,11357
13
- jentic_openapi_parser-1.0.0a10.dist-info/licenses/NOTICE,sha256=pAOGW-rGw9KNc2cuuLWZkfx0GSTV4TicbgBKZSLPMIs,168
14
- jentic_openapi_parser-1.0.0a10.dist-info/WHEEL,sha256=eh7sammvW2TypMMMGKgsM83HyA_3qQ5Lgg3ynoecH3M,79
15
- jentic_openapi_parser-1.0.0a10.dist-info/entry_points.txt,sha256=UtW_hbhwA7HolzLvT1JJRaBIYjfCH2fnmhPclU3tNPM,384
16
- jentic_openapi_parser-1.0.0a10.dist-info/METADATA,sha256=TRpu-eHjkQoO47PTaaxFAT61XFOu8YHqV8BB_nSeZ3k,8038
17
- jentic_openapi_parser-1.0.0a10.dist-info/RECORD,,
11
+ jentic/apitools/openapi/parser/core/serialization.py,sha256=qr9CBgZzb9GKRPTwOb_MmS0-GdHpVZLmXiHiX1n1cIM,2810
12
+ jentic_openapi_parser-1.0.0a12.dist-info/licenses/LICENSE,sha256=WNHhf_5RCaeuKWyq_K39vmp9F28LxKsB4SpomwSZ2L0,11357
13
+ jentic_openapi_parser-1.0.0a12.dist-info/licenses/NOTICE,sha256=pAOGW-rGw9KNc2cuuLWZkfx0GSTV4TicbgBKZSLPMIs,168
14
+ jentic_openapi_parser-1.0.0a12.dist-info/WHEEL,sha256=eh7sammvW2TypMMMGKgsM83HyA_3qQ5Lgg3ynoecH3M,79
15
+ jentic_openapi_parser-1.0.0a12.dist-info/entry_points.txt,sha256=UtW_hbhwA7HolzLvT1JJRaBIYjfCH2fnmhPclU3tNPM,384
16
+ jentic_openapi_parser-1.0.0a12.dist-info/METADATA,sha256=6P6PaOTAI_wgWtmzXYcTVrvy_5hQgjRq3ytJ7XuinsQ,8038
17
+ jentic_openapi_parser-1.0.0a12.dist-info/RECORD,,