Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Re-add JsonObjectMeta to jsonobject package #239

Merged
merged 2 commits into from
Feb 27, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,14 @@
No significant changes since the last release


## 2.3.1

| Released on | Released by |
|-------------|---------------|
| 2025-02-27 | @millerdev |

- Restore `jsonobject.JsonObjectMeta`

## 2.3.0

| Released on | Released by |
Expand Down
5 changes: 3 additions & 2 deletions jsonobject/__init__.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
from .base import JsonObjectMeta
from .containers import JsonArray
from .properties import *
from .api import JsonObject

__version__ = '2.3.0'
__version__ = '2.3.1'
__all__ = [
'IntegerProperty', 'FloatProperty', 'DecimalProperty',
'StringProperty', 'BooleanProperty',
'DateProperty', 'DateTimeProperty', 'TimeProperty',
'ObjectProperty', 'ListProperty', 'DictProperty', 'SetProperty',
'JsonObject', 'JsonArray',
'JsonObject', 'JsonObjectMeta', 'JsonArray',
]
5 changes: 5 additions & 0 deletions test/tests.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
from copy import deepcopy
import unittest
import jsonobject
from jsonobject import *
from jsonobject.exceptions import (
BadValueError,
Expand Down Expand Up @@ -429,6 +430,10 @@ class Foo(JsonObject):
foo = Foo()
self.assertIsInstance(foo.bar, Bar)

def test_module_has_jsonobjectmeta(self):
# regression test
self.assertIsInstance(jsonobject.JsonObjectMeta, type)


class TestJsonArray(unittest.TestCase):

Expand Down