Code Monkey home page Code Monkey logo

malio's People

Contributors

frankhossfeld avatar philkohl avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

malio's Issues

Feature request: @NotZero

Create a new check for numbers and there unboxed types to check that the value is not zero. It should also check, that the value is greater zero.

add a boolean value to the annotation to allow negative values

Add optional error message as annotation parameter

ATM the error messages are generated by the framework. There is no chance to change it by the user.

Add a optional message parameter to each variable annotation. It the message parameter is set, use the value from the parameter - otherwise use the default value ...

Wrong text output

Instead of logging 'Malio-Processor' it logs 'Nalu-Plugin-GWT-Processor`

Feature request: Make @Size annotation usable for arrays as well

Currently, the @Size annotation can only be used for variables of type Collection.
It would be useful if this annotation could also be applied to arrays.

For example like so:

@MalioValidator
public class DepartmentManager {

  @Size(min = 1, max = 50)
  private int[] subordinateEmployeeIds;

}

PS: Good work so far ๐Ÿ‘

Minor errors in class documentations

The class documentations of @NotEmpty and @NotBlank currently contain a small mistake. In both class is described:
The annotation indicates that the String should be empty - if the value is not null.

See:

* <p>The annotation indicates that the String should be empty - if the value is not null.</p>

* <p>The annotation indicates that the String should be empty - if the value is not null.</p>

The correct description should be something like: The annotation indicates that the String should **not** be empty - if the value is not null.

PoC: reduce the number of generated classes

The number of generated classes is really high. One for the validator and one for each variable and variable annotation of malio.

Instead of generating classes for each variable and annotation generate a method inside the validator.

make the generation of the check- and validate-method configurable

Currently, Malio always generates a check- and a validate-method. In some cases, you might only use one of both. In this case Malio will generate a lot of useless code.

To avoid it, make the generation configurable.

Add two parameters to the `MalioValidator-annotation:

  • generateCheckMethod: to trigger the generation of the check-method. (default: true)
  • generateValidateMethod: to trigger the generation of the validate-method. (default: true)

which control the generation of both methods.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.