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

Implement a sub-framework for easier JSON processing and validation #1134

Closed
ipolevoy opened this issue Jun 22, 2021 · 0 comments
Closed

Implement a sub-framework for easier JSON processing and validation #1134

ipolevoy opened this issue Jun 22, 2021 · 0 comments

Comments

@ipolevoy
Copy link
Member

ipolevoy commented Jun 22, 2021

goals:

  1. easy to pick and chose parts of JSON by using direct links: "university.students.joe".
  2. Implement the use of the validation framework to allow declarative validations:
JSONRequest r = new JSONRequest(String json){
   validatePrecenseOf("university.students.joe");
   validateNumericalityOf("university.students.joe.age");
... and so on
}

This way, processing and validation of JSON requests in ActiveWeb will become easier.

@ipolevoy ipolevoy self-assigned this Jun 22, 2021
ipolevoy added a commit that referenced this issue Jun 23, 2021
…dation

* Implemented initial list and map classes and added path search to Map
* Moved JsonHelper to new package and deprecated the old class.
ipolevoy added a commit that referenced this issue Jun 23, 2021
…dation

* Implemented validations with tests
ipolevoy added a commit that referenced this issue Jun 23, 2021
ipolevoy added a commit that referenced this issue Jun 23, 2021
ipolevoy added a commit that referenced this issue Jun 24, 2021
…dation

* Integrated with implicit conversion in ActiveWeb
ipolevoy added a commit that referenced this issue Jun 24, 2021
…dation

* removed JSONBase(String jsonObject)  constructor, some refactoring
ipolevoy added a commit that referenced this issue Jun 24, 2021
…dation

* Added a convenience method validateWith(vararg) to be able to add multiple validators.
ipolevoy added a commit that referenced this issue Jun 25, 2021
ipolevoy added a commit that referenced this issue Jun 29, 2021
…dation

* return JSONMap and JSONList from JSONHelper.
ipolevoy added a commit that referenced this issue Jun 30, 2021
…dation

* return JSONMap and JSONList from JSONHelper.
ipolevoy added a commit that referenced this issue Jul 8, 2021
…dation

* Added list, map and boolean validators
* SOme refactoring
@ipolevoy ipolevoy closed this as completed Jul 9, 2021
ipolevoy added a commit that referenced this issue Jul 9, 2021
ipolevoy added a commit that referenced this issue Aug 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant