Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 831 - 840 of 1,126 for apie (0.02 seconds)

  1. docs/zh-hant/docs/how-to/separate-openapi-schemas.md

    在互動式文件中試用並檢視回應時,儘管程式碼沒有為其中一個 `description` 欄位加入任何內容,JSON 回應仍包含預設值(`null`):
    
    <div class="screenshot">
    <img src="/img/tutorial/separate-openapi-schemas/image02.png">
    </div>
    
    這代表該欄位一定會有值,只是有時候值可能是 `None`(在 JSON 中為 `null`)。
    
    因此,使用你 API 的用戶端不必檢查值是否存在,可以假設該欄位一定存在;只是有些情況下它的值會是預設的 `None`。
    
    在 OpenAPI 中,描述這種情況的方式是將該欄位標記為必填,因為它一定存在。
    
    因此,同一個模型的 JSON Schema 會依用於輸入或輸出而不同:
    
    - 用於輸入時,`description` 不是必填
    - 用於輸出時,`description` 是必填(且可能為 `None`,在 JSON 中為 `null`)
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sat Feb 14 08:15:26 GMT 2026
    - 4.1K bytes
    - Click Count (0)
  2. docs/zh-hant/docs/tutorial/server-sent-events.md

    # Server-Sent Events(SSE) { #server-sent-events-sse }
    
    你可以使用 Server-Sent Events(SSE)把資料串流傳送給用戶端。
    
    這與[串流 JSON Lines](stream-json-lines.md)類似,但使用瀏覽器原生支援、透過 [`EventSource` API](https://developer.mozilla.org/en-US/docs/Web/API/EventSource) 的 `text/event-stream` 格式。
    
    /// info
    
    在 FastAPI 0.135.0 新增。
    
    ///
    
    ## 什麼是 Server-Sent Events? { #what-are-server-sent-events }
    
    SSE 是一種透過 HTTP 從伺服器向用戶端串流傳送資料的標準。
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 14:33:04 GMT 2026
    - 4.6K bytes
    - Click Count (0)
  3. docs/zh/docs/how-to/separate-openapi-schemas.md

    如果你在文档中交互并查看响应,即使代码没有给某个 `description` 字段赋值,JSON 响应中仍包含默认值(`null`):
    
    <div class="screenshot">
    <img src="/img/tutorial/separate-openapi-schemas/image02.png">
    </div>
    
    这意味着它**总会有值**,只是有时该值可能为 `None`(在 JSON 中是 `null`)。
    
    这也意味着,使用你的 API 的客户端无需检查该值是否存在,他们可以**假设该字段总会存在**,只是有时它会是默认值 `None`。
    
    在 OpenAPI 中描述这一点的方式,是把该字段标记为**必填**,因为它总会存在。
    
    因此,一个模型的 JSON Schema 会根据它用于**输入还是输出**而有所不同:
    
    - 用于**输入**时,`description` **不是必填**
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Feb 13 13:37:57 GMT 2026
    - 4.3K bytes
    - Click Count (0)
  4. compat/maven-embedder/src/main/java/org/apache/maven/cli/event/ExecutionEventLogger.java

     */
    package org.apache.maven.cli.event;
    
    import java.io.File;
    import java.nio.file.Path;
    import java.util.List;
    import java.util.Objects;
    
    import org.apache.maven.api.services.MessageBuilder;
    import org.apache.maven.api.services.MessageBuilderFactory;
    import org.apache.maven.execution.AbstractExecutionListener;
    import org.apache.maven.execution.BuildFailure;
    import org.apache.maven.execution.BuildSuccess;
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Fri Nov 08 08:49:11 GMT 2024
    - 17.2K bytes
    - Click Count (0)
  5. configure.py

              (android_ndk_home_path, ndk_version, _SUPPORTED_ANDROID_NDK_VERSIONS))
      write_action_env_to_bazelrc('ANDROID_NDK_VERSION', ndk_version)
    
      # Now grab the NDK API level to use. Note that this is different from the
      # SDK API level, as the NDK API level is effectively the *min* target SDK
      # version.
      meta = open(os.path.join(android_ndk_home_path, 'meta/platforms.json'))
      platforms = json.load(meta)
      meta.close()
    Created: Tue Apr 07 12:39:13 GMT 2026
    - Last Modified: Fri Dec 19 16:32:04 GMT 2025
    - 48.3K bytes
    - Click Count (0)
  6. native-image-tests/src/test/kotlin/okhttp3/nativeimage/SampleTest.kt

    import assertk.assertions.isEqualTo
    import mockwebserver3.MockResponse
    import mockwebserver3.MockWebServer
    import okhttp3.HttpUrl.Companion.toHttpUrl
    import okhttp3.OkHttpClient
    import okhttp3.Request
    import org.junit.jupiter.api.Test
    
    class SampleTest {
      private val server = MockWebServer()
    
      private val client = OkHttpClient()
    
      @Test
      fun passingTest() {
        assertThat("hello").isEqualTo("hello")
      }
    
      @Test
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Jul 22 20:31:49 GMT 2025
    - 1.4K bytes
    - Click Count (0)
  7. guava/src/com/google/common/base/CommonMatcher.java

     * the License.
     */
    
    package com.google.common.base;
    
    import com.google.common.annotations.GwtCompatible;
    
    /**
     * The subset of the {@link java.util.regex.Matcher} API which is used by this package, and also
     * shared with the {@code re2j} library. For internal use only. Please refer to the {@code Matcher}
     * javadoc for details.
     */
    @GwtCompatible
    abstract class CommonMatcher {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sat Dec 21 03:10:51 GMT 2024
    - 1.2K bytes
    - Click Count (0)
  8. api/maven-api-core/src/main/java/org/apache/maven/api/services/ToolchainFactoryException.java

     * KIND, either express or implied.  See the License for the
     * specific language governing permissions and limitations
     * under the License.
     */
    package org.apache.maven.api.services;
    
    /**
     * Exception thrown when toolchain factory operations fail.
     *
     * <p>This exception wraps errors that occur during toolchain creation or initialization.</p>
     */
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Tue Feb 11 12:33:57 GMT 2025
    - 1.3K bytes
    - Click Count (0)
  9. compat/maven-model-builder/src/main/java/org/apache/maven/model/building/ModelProcessor.java

    package org.apache.maven.model.building;
    
    import org.apache.maven.model.io.ModelReader;
    import org.apache.maven.model.locator.ModelLocator;
    
    /**
     * ModelProcessor
     *
     * @deprecated use {@code org.apache.maven.api.services.ModelBuilder} instead
     */
    @Deprecated(since = "4.0.0")
    @SuppressWarnings("checkstyle:interfaceistype")
    public interface ModelProcessor extends ModelLocator, ModelReader {
    
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Tue Feb 25 08:27:34 GMT 2025
    - 1.2K bytes
    - Click Count (0)
  10. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvnenc/EncryptParser.java

     * specific language governing permissions and limitations
     * under the License.
     */
    package org.apache.maven.cling.invoker.mvnenc;
    
    import org.apache.commons.cli.ParseException;
    import org.apache.maven.api.cli.Options;
    import org.apache.maven.cling.invoker.BaseParser;
    
    public class EncryptParser extends BaseParser {
        @Override
        protected Options parseCliOptions(LocalContext context) {
            try {
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Wed Jun 11 13:14:09 GMT 2025
    - 1.4K bytes
    - Click Count (0)
Back to Top