Code Monkey home page Code Monkey logo

Comments (4)

chadell avatar chadell commented on June 30, 2024

I don't understand this issue 😓

from jdiff.

lvrfrc87 avatar lvrfrc87 commented on June 30, 2024

Let me get my head around it and might try to remember what i meant. Next time would be good to add some context :D

from jdiff.

lvrfrc87 avatar lvrfrc87 commented on June 30, 2024

@chadell

As it stands now, regex check type is define as per example below

    "regex",
    {"regex": ".*UNDERLAY.*", "mode": "match"},
    "result[0].vrfs.default.peerList[*].[$peerAddress$,peerGroup]",

if you look at parameter_match check type, we define as below

    "parameter_match",
    {"mode": "no-match", "params": {"localAsn": "65130.1100", "linkType": "external"}},
    "result[0].vrfs.default.peerList[*].[$peerAddress$,localAsn,linkType]",

To keep the structure more consistent, the ideal would be to have regex define as per below:

    "regex",
    {"mode": "match", "params": {"regex": "*UNDERLAY.*"},
    "result[0].vrfs.default.peerList[*].[$peerAddress$,peerGroup]",

Would that make sense?

@pszulczewski your opinion is much appreciated

from jdiff.

pszulczewski avatar pszulczewski commented on June 30, 2024

In parameter check having params is justified as you may have different number of k:v pairs and you don't know key names.
In regex you have only one k:v pair, and the key is always regex, you don't really need params.

For me it's good as it is in regex.

In operator check, we have double nested params which I am not sure if inecessary.

from jdiff.

Related Issues (20)

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.