Code Monkey home page Code Monkey logo

Comments (6)

stevenbrookes avatar stevenbrookes commented on July 20, 2024 1

OK I managed to pull an example from our logging system. Call was

https://api.bigcommerce.com/stores/lh9wfk05w0/v3/customers?id%3Ain=10527",

Response was

"X-Request-ID": "60be554500d1d71cb3971d9ce3f47979",

{
"data": [
{
"id": 10527,
"authentication": {
"force_password_reset": false
},
"company": "",
"customer_group_id": 0,
"email": "[email protected]",
"first_name": "",
"last_name": "",
"notes": "",
"phone": "Catherine",
"registration_ip_address": "",
"tax_exempt_category": "",
"date_created": "2022-08-23T11:52:23Z",
"date_modified": "2022-08-23T11:52:23Z",
"accepts_product_review_abandoned_cart_emails": true,
"origin_channel_id": 1,
"channel_ids": null
}
],
"meta": {
"pagination": {
"total": 1,
"count": 1,
"per_page": 50,
"current_page": 1,
"total_pages": 1
}
}
}

Hope that helps. I locally patched the swagger file so I don't see the error now, so finding another example won't be so easy.

from api-specs.

bc-traciporter avatar bc-traciporter commented on July 20, 2024

@stevenbrookes thanks for bringing this to our attention. Can you explain how it is possible to have 0 minLength?

from api-specs.

stevenbrookes avatar stevenbrookes commented on July 20, 2024

Well all I know is on one of the BC instances we are connected to via the API we are seeing sales where the customer first name and last name are zero length. Seems odd I agree, but that's what we see. I don't have any insight into why that's happening in BC as we are a 3rd part just providing integration services.

from api-specs.

dougep avatar dougep commented on July 20, 2024

Hi @stevenbrookes, would you be able to provide some examples of API queries and responses where you see zero length please? That's not something that should be allowed, so a couple of examples would help us to dig a bit deeper. Please include the store and customer IDs, query url and result payload. Thanks.

from api-specs.

slsriehl avatar slsriehl commented on July 20, 2024

Thanks for engaging, @stevenbrookes. From a docs perspective, I've confirmed that this is not the intended behavior, so I'm going to close this issue out.

For a connection to more BigCommerce developer resources, consider engaging in our Developer Community.

from api-specs.

stevenbrookes avatar stevenbrookes commented on July 20, 2024

When you say you're are "going to close this out", have you fixed the issue in the OpenAPI file? BC is able to create a message that's not compliant with the OpenAPI file, so either the OpenAPI file or BC needs updating to bring them in line with each other. I've provided a concrete example of this above as requested.

from api-specs.

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.