-
Generating JSON Schema in Java with "additionalProperties" set to "true"
Recently i was working on a new tool for contract testing that we decided to develop in New10 from scratch. We decided that we would like to use JSON Schema's for contracts validation and for that i needed to implement several SDK's in typescript, java, python in order to support…
-
Fixing "Gitleaks analysis failed" issue in Gitlab pipeline
In New10 we have recently moved our security scans from Snyk to Security scanner integration. Recently, when i was integrating this with another service, i got this error [INFO] [secrets] [2020-12-31T08:17:48Z] ▶ GitLab secrets analyzer v3.13.1 [INFO] [secrets] [2020-12-31T08:17:48Z] ▶ Running scan from commits file 06efd4ca11ae36382f34720e9eae3e1e6e0_…
-
Building a folder structure tree recursively with typescript and reduce
Recenlty i was working on a new CLI tool for my company, where we would have to work a lot with file system and files manipulation. For one of the tasks i needed to have a method that would generate me a directory structure in JSON format with all child…
-
Generating typescript API client from Swagger
When it comes to API Test Frameworks, I prefer to generate code and not to write everything manually. In my current company, we managed to build a Test Framework using swagger-codegen and Java bindings. It was relatively simple to set up a process where we would generate API clients using…
-
Handling ThrottlingException in Cloudwatch Goland SDK
I've been recently working on a new cli tool that was helping our Teams to subscribe cloudwatch log groups to a specific lambda that forwards logs to Datadog. However, when a project has big number of lambda's, we were facing with ThrottlingException from cloudwatch. This allowed me to learn how…
-
Running Typescript scratches in Webstorm IDE
Recently i started to work more closely with Typescript and therefore i need to test some small ideas more often in typescript. Scratches are the best place to do that while you're building something. Unfortunatelly Webstorm doesn't support running typescript scratches out of the box. It can only understand Js…