You have a python script as a middleware?
# suitescript
m
You have a python script as a middleware?
a
I don't understand. What application do you plan on accessing the restlet from?
m
It is an integration between NS and the client's own system. The client updates NS sometimes. So, I was asking how do you validate the JSON received in the RESTlet.
By the client, I don't mean the browser. I mean the actual client.
a
I was talking about authentication. But you have to me more specific as to what constitutes valid JSON from invalid JSON.
k
Marwan - You go to Integration app in systems on Manage integration, check app and logs > restlet logs
s
@Marwan I recently confirmed
ajv
works in a restlet using json-schema for validation.
I'm likely to adopt it as my standard library for such use.
I haven't tried it with JTD schemas but that support is another future looking +1 in my book.
m
Nice, thanks for letting me feel that I am not weird in thinking about using it 😄
I am trying to collect some best practices and maybe templates and libraries then putting them in a public repo. While other developers are very friendly and supportive here, I am a little bit surprised that the community in general lack such things.
But maybe this is the case with a field like ERP. Will try to have some positive contribution when I am able to.
@stalbert and oh, what book?
m
@Marwan it's an expression, like in my opinion
🙏 1
s
yes, sorry for using that expression. As for tooling and libraries, some here don't believe in them. I can't fathom it but I try not to judge.
m
Didn't know that. Ok cool.
sorry for using that expression
It is my poor english actually, sorry.
c
@stalbert because sometimes you have to hand code over to other people that don't know anything other than standard SS as advertised by Oracle.
And it's mandated that you don't increase consulting costs by introducing something other people have to learn. I'm not saying I like it, I'm just saying that's what happens sometimes.
s
I can guarantee that it will take people significantly longer to learn (i.e. reverse engineer) a bunch of ad-hoc code achieving the same thing that a well documented, probably even unit tested library can do.