You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 2, 2023. It is now read-only.
This module provides you with the means to define a **tester object** containing a set of **match rules** that will be used against a **payload object**. The `match()` method within the module will return whether the payload object has satisfied all the rules and will return the set of matches.
13
13
14
-
Refer to [Usage examples](#usage-examples) to see it in action.
14
+
## Demo
15
+
16
+
The best way to really understand this module is to play with some examples. Go through some of our [usage examples](#usage-examples) and test them in our interactive demo page:
1. You can use this module as a basic JSON schema validator
32
38
2. Can also be used in unit testing for broader assertions
33
-
3. Can be used to extract values from a complex API response (parsing chat bot responses for example)
34
-
4. Can be used for a JSON linter
39
+
3. Can be used to extract values from a complex API response. We are actively using it in the maintenance of our community slack bot (https://github.com/mena-devs/bosta)
### 1. What's the difference between Objectron and any other Schema Validator?
279
+
280
+
Objectron has a simple interface, it's a very small module (~60 LOCs), and most importantly it allows the extraction of the data that matches the rules not merely validating it.
281
+
282
+
### 2. Has this been used in production?
283
+
284
+
No, but we're planning to use it.
285
+
286
+
### 3. Why did you build this?
287
+
288
+
Why not? :)
289
+
290
+
### 4. I have a great idea for a new feature!
291
+
292
+
Fantastic, we'd love to hear more about it. Please [create an issue](https://github.com/mena-devs/objectron/issues) and we will look into it as soon as we're able to.
293
+
294
+
### 5. I have a question not in this list
295
+
296
+
Please [create an issue](https://github.com/mena-devs/objectron/issues) and we will look into it as soon as we're able to.
0 commit comments