Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:127899 X-Original-To: internals@lists.php.net Delivered-To: internals@lists.php.net Received: from php-smtp4.php.net (php-smtp4.php.net [45.112.84.5]) by lists.php.net (Postfix) with ESMTPS id F39D01A00BC for ; Fri, 4 Jul 2025 23:47:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1751672752; bh=amZg8QSAi+/5zLD1jKOZtQRoljShFDLxZXnWH6wIX5k=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=agp+1qEiAOQdkVV8eTfTw6g4m7nmq5cjjX2DzxKHBUac03v3oogSCVnyVyWJ9g+1u C3VHqn9C4AU2v58dB89iuGyaO1GfAkNWORnjUiea2mnonldZi0g6hTVB6jSp3eMbT0 1aF8RvuLAkH/vvmHdkQFuqFVFAb1tzvTbiVDxjN45weXL6207BeFnA4Z1uTsRmALP8 /8qAYdAyZEyAbSWYyp706r9y9zp9kpGX4SMIJwJdU74zC9lG/H8vYGyJEMkPYT2BtH 2xozSfRjARoj6sgGFcnirpFSLZhJF+s9qTnsr1x/D2WQbVbgbF1JlgSnfMbrBZTeoQ kk9ORWIqp4Dmg== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 57E07180068 for ; Fri, 4 Jul 2025 23:45:52 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on php-smtp4.php.net X-Spam-Level: ** X-Spam-Status: No, score=2.7 required=5.0 tests=BAYES_50,DMARC_NONE, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, HTML_MESSAGE,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=4.0.1 X-Spam-Virus: Error (Cannot connect to unix socket '/var/run/clamav/clamd.ctl': connect: Connection refused) X-Envelope-From: Received: from mail-oi1-f181.google.com (mail-oi1-f181.google.com [209.85.167.181]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Fri, 4 Jul 2025 23:45:52 +0000 (UTC) Received: by mail-oi1-f181.google.com with SMTP id 5614622812f47-40d1169ff43so341906b6e.2 for ; Fri, 04 Jul 2025 16:47:43 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1751672863; x=1752277663; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=amZg8QSAi+/5zLD1jKOZtQRoljShFDLxZXnWH6wIX5k=; b=hi5WjvRlNXaz2wFATmaUisbubJRICXGefz2EI7oxFdXWYS9pXOQr9ebYwdunQgtvsF yfZCsppFaj+0ZkaqNG/Ela7IHGTnCEc3Xhh+PpQDwLfxwMFvC35n6WooSjMw4eUUUiKF FrwPdoL8xAvX4RezfPtRqbhSQCkzneNDUunLQ9Is5TUdTiQChkqwaRZkqmuVJJhR2pFr J2ugktHLVQmHwnXzSA+Rxvci+v/Y+Qn0rwsiV1P+jTg+bL5yOpcYjNBGgM/1jNwaXGQK e7TiG3Ej7O+2N3qgfTr38rO3t8DF6/5Ts7Ua8vuuT5hoHM4Nnkd1/2LPQ2DTCQXWTlFb OHRw== X-Gm-Message-State: AOJu0YzveGIrPUFCwdwlJqEMIZX8Z1xBeYofgc14ct7nqvNYY4ONrYAb ko3rp42CRJec+kZvsLj/c9p/IxyfZqC5ZHV8Se0nzgTF/TBYSEob+CHj/RHoLSYjCAFCxcVXFHI dFj6+uOCZGmqux5jQ0X6QjAJAFxtHcqk= X-Gm-Gg: ASbGncusWs3nF4DCRFMyK++eMTIwjz5U67EPzqM0kXSrAMzmfpZRaM/s/GX3Pnc4nl/ PgPuE0bKJzjtBpRLGQQkEW6h25gHd3XDh5DYYmEO9JneseyaPkSWwE+HdLxX3zvQebdkMo/9zNU dj87cShiwfHMpv0eZC+KFsT1I6kY0LrD88QMOkbxdszdaT6qNMgUiSjQ== X-Google-Smtp-Source: AGHT+IEM+8L6/kEIz9lJugdf+xsy0u+8gnr8K/EUNSh1AMjwU5fbGICM/jHNsuuFMoS8OPvU3x8Pf1Hf5jJNAHL0Bxw= X-Received: by 2002:a05:6808:170e:b0:407:39f1:aa8e with SMTP id 5614622812f47-40d2e0e0411mr324234b6e.36.1751672863384; Fri, 04 Jul 2025 16:47:43 -0700 (PDT) Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net x-ms-reactions: disallow MIME-Version: 1.0 References: <9B2997E3-21C9-47D9-BB54-99C83A481ED8@php.net> <0BE9291A-A044-4660-AF80-AABE7C4B820A@php.net> In-Reply-To: Date: Sat, 5 Jul 2025 01:47:32 +0200 X-Gm-Features: Ac12FXwtEuSLOJZ9IWtLQfPMQRXTd2Li62EsGiB6s9f5Kn3ajrVmM9AddBbGW0o Message-ID: Subject: Re: [PHP-DEV] [RFC] JSON Schema validation support To: Ben Ramsey Cc: PHP internals list Content-Type: multipart/alternative; boundary="000000000000c8e7a70639231e0c" From: bukka@php.net (Jakub Zelenka) --000000000000c8e7a70639231e0c Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Sat, Jul 5, 2025 at 1:41=E2=80=AFAM Jakub Zelenka wrote: > On Sat, Jul 5, 2025 at 1:29=E2=80=AFAM Ben Ramsey wrote: > >> Another thing that needs to be addressed in the RFC is how error >> reporting will work. I see this hinted at under Future Scope, but one of >> the benefits of the existing JSON Schema Composer packages is the robust >> level of error reporting they provide. >> >> > The error reporting is done using normal error codes and exceptions get > some sort of identification message. > I should probably show some example how this looks like. See this test https://github.com/bukka/php-jsond/blob/1f640becf3cd0f0cca9c72fa5045c7ccefc= 26d7f/tests/jsond_decode_schema_002.phpt Kind regards, Jakub --000000000000c8e7a70639231e0c Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Sat, Jul 5, 2025 at 1:41=E2=80=AFAM Ja= kub Zelenka <bukka@php.net> wrot= e:
On Sat, = Jul 5, 2025 at 1:29=E2=80=AFAM Ben Ramsey <ramsey@php.net> wrote:
Another thing that needs to be addressed in the RFC is how error reporting = will work. I see this hinted at under Future Scope, but one of the benefits= of the existing JSON Schema Composer packages is the robust level of error= reporting they provide.


The error reporting is done using norm= al error codes and exceptions get some sort of identification message.=C2= =A0



--000000000000c8e7a70639231e0c--