jentic-openapi-parser 1.0.0a10__tar.gz → 1.0.0a12__tar.gz

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.
Files changed (16) hide show
  1. {jentic_openapi_parser-1.0.0a10 → jentic_openapi_parser-1.0.0a12}/PKG-INFO +2 -2
  2. {jentic_openapi_parser-1.0.0a10 → jentic_openapi_parser-1.0.0a12}/pyproject.toml +2 -2
  3. {jentic_openapi_parser-1.0.0a10 → jentic_openapi_parser-1.0.0a12}/src/jentic/apitools/openapi/parser/core/serialization.py +7 -2
  4. {jentic_openapi_parser-1.0.0a10 → jentic_openapi_parser-1.0.0a12}/LICENSE +0 -0
  5. {jentic_openapi_parser-1.0.0a10 → jentic_openapi_parser-1.0.0a12}/NOTICE +0 -0
  6. {jentic_openapi_parser-1.0.0a10 → jentic_openapi_parser-1.0.0a12}/README.md +0 -0
  7. {jentic_openapi_parser-1.0.0a10 → jentic_openapi_parser-1.0.0a12}/src/jentic/apitools/openapi/parser/backends/base.py +0 -0
  8. {jentic_openapi_parser-1.0.0a10 → jentic_openapi_parser-1.0.0a12}/src/jentic/apitools/openapi/parser/backends/py.typed +0 -0
  9. {jentic_openapi_parser-1.0.0a10 → jentic_openapi_parser-1.0.0a12}/src/jentic/apitools/openapi/parser/backends/pyyaml.py +0 -0
  10. {jentic_openapi_parser-1.0.0a10 → jentic_openapi_parser-1.0.0a12}/src/jentic/apitools/openapi/parser/backends/ruamel_roundtrip.py +0 -0
  11. {jentic_openapi_parser-1.0.0a10 → jentic_openapi_parser-1.0.0a12}/src/jentic/apitools/openapi/parser/backends/ruamel_safe.py +0 -0
  12. {jentic_openapi_parser-1.0.0a10 → jentic_openapi_parser-1.0.0a12}/src/jentic/apitools/openapi/parser/core/__init__.py +0 -0
  13. {jentic_openapi_parser-1.0.0a10 → jentic_openapi_parser-1.0.0a12}/src/jentic/apitools/openapi/parser/core/exceptions.py +0 -0
  14. {jentic_openapi_parser-1.0.0a10 → jentic_openapi_parser-1.0.0a12}/src/jentic/apitools/openapi/parser/core/loader.py +0 -0
  15. {jentic_openapi_parser-1.0.0a10 → jentic_openapi_parser-1.0.0a12}/src/jentic/apitools/openapi/parser/core/openapi_parser.py +0 -0
  16. {jentic_openapi_parser-1.0.0a10 → jentic_openapi_parser-1.0.0a12}/src/jentic/apitools/openapi/parser/core/py.typed +0 -0
@@ -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
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "jentic-openapi-parser"
3
- version = "1.0.0-alpha.10"
3
+ version = "1.0.0-alpha.12"
4
4
  description = "Jentic OpenAPI Parser"
5
5
  readme = "README.md"
6
6
  authors = [{ name = "Jentic", email = "hello@jentic.com" }]
@@ -9,7 +9,7 @@ license-files = ["LICENSE", "NOTICE"]
9
9
  requires-python = ">=3.11"
10
10
  dependencies = [
11
11
  "attrs~=25.4.0",
12
- "jentic-openapi-common~=1.0.0-alpha.10",
12
+ "jentic-openapi-common~=1.0.0-alpha.12",
13
13
  "pyyaml~=6.0.3",
14
14
  "requests~=2.32.5",
15
15
  "ruamel-yaml~=0.18.15"
@@ -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
  )