Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Inconsistencies between documentation and examples

Daniel Madsen
Kilo Sage
Kilo Sage

I have been digging into the Fluent examples on github, and I have found some inconsistencies between the examples and the documentation in multiple places. For example:

 

sdk-examples/restapi-sample/src/fluent/rest-api-module.now.ts at main · ServiceNow/sdk-examples

 

In the example code, it is using the property "service_id", which is in snake case. However, the documentation states that it should be in camel case (serviceId):

 

Scripted REST API - ServiceNow Fluent

 

I have found multiple occasions where the properties in the sample code did not match the documentation (camel case in the documentation, snake case in the examples). I believe it should be consistent of course, but I am curious if it makes a difference?

0 REPLIES 0